Commit 8f062df2 authored by Christoph Hellwig's avatar Christoph Hellwig

[XFS] Remove PBF_MAPPABLE

SGI Modid: xfs-linux:xfs-kern:166087a
parent b7e65c30
...@@ -470,10 +470,8 @@ _pagebuf_lookup_pages( ...@@ -470,10 +470,8 @@ _pagebuf_lookup_pages(
retry_count = 0; retry_count = 0;
} else if (flags & PBF_DONT_BLOCK) { } else if (flags & PBF_DONT_BLOCK) {
gfp_mask = GFP_NOFS; gfp_mask = GFP_NOFS;
} else if (flags & PBF_MAPPABLE) {
gfp_mask = GFP_KERNEL;
} else { } else {
gfp_mask = GFP_HIGHUSER; gfp_mask = GFP_KERNEL;
} }
next_buffer_offset = pb->pb_file_offset + pb->pb_buffer_length; next_buffer_offset = pb->pb_file_offset + pb->pb_buffer_length;
...@@ -708,8 +706,7 @@ _pagebuf_find( /* find buffer for block */ ...@@ -708,8 +706,7 @@ _pagebuf_find( /* find buffer for block */
} }
if (pb->pb_flags & PBF_STALE) if (pb->pb_flags & PBF_STALE)
pb->pb_flags &= PBF_MAPPABLE | \ pb->pb_flags &= PBF_MAPPED | \
PBF_MAPPED | \
_PBF_ALL_PAGES_MAPPED | \ _PBF_ALL_PAGES_MAPPED | \
_PBF_ADDR_ALLOCATED | \ _PBF_ADDR_ALLOCATED | \
_PBF_MEM_ALLOCATED | \ _PBF_MEM_ALLOCATED | \
...@@ -856,7 +853,7 @@ pagebuf_readahead( ...@@ -856,7 +853,7 @@ pagebuf_readahead(
if (bdi_write_congested(bdi)) if (bdi_write_congested(bdi))
return; return;
flags |= (PBF_TRYLOCK|PBF_READ|PBF_ASYNC|PBF_MAPPABLE|PBF_READ_AHEAD); flags |= (PBF_TRYLOCK|PBF_READ|PBF_ASYNC|PBF_READ_AHEAD);
pagebuf_get(target, ioff, isize, flags); pagebuf_get(target, ioff, isize, flags);
} }
......
...@@ -77,7 +77,6 @@ typedef enum page_buf_flags_e { /* pb_flags values */ ...@@ -77,7 +77,6 @@ typedef enum page_buf_flags_e { /* pb_flags values */
PBF_NONE = (1 << 5), /* buffer not read at all */ PBF_NONE = (1 << 5), /* buffer not read at all */
PBF_DELWRI = (1 << 6), /* buffer has dirty pages */ PBF_DELWRI = (1 << 6), /* buffer has dirty pages */
PBF_SYNC = (1 << 8), /* force updates to disk */ PBF_SYNC = (1 << 8), /* force updates to disk */
PBF_MAPPABLE = (1 << 9),/* use directly-addressable pages */
PBF_STALE = (1 << 10), /* buffer has been staled, do not find it */ PBF_STALE = (1 << 10), /* buffer has been staled, do not find it */
PBF_FS_MANAGED = (1 << 11), /* filesystem controls freeing memory */ PBF_FS_MANAGED = (1 << 11), /* filesystem controls freeing memory */
PBF_FS_DATAIOD = (1 << 12), /* schedule IO completion on fs datad */ PBF_FS_DATAIOD = (1 << 12), /* schedule IO completion on fs datad */
...@@ -508,17 +507,15 @@ extern inline xfs_caddr_t xfs_buf_offset(page_buf_t *bp, size_t offset) ...@@ -508,17 +507,15 @@ extern inline xfs_caddr_t xfs_buf_offset(page_buf_t *bp, size_t offset)
#define xfs_buf_read(target, blkno, len, flags) \ #define xfs_buf_read(target, blkno, len, flags) \
pagebuf_get((target), (blkno), (len), \ pagebuf_get((target), (blkno), (len), \
PBF_LOCK | PBF_READ | PBF_MAPPED | PBF_MAPPABLE) PBF_LOCK | PBF_READ | PBF_MAPPED)
#define xfs_buf_get(target, blkno, len, flags) \ #define xfs_buf_get(target, blkno, len, flags) \
pagebuf_get((target), (blkno), (len), \ pagebuf_get((target), (blkno), (len), \
PBF_LOCK | PBF_MAPPED | PBF_MAPPABLE) PBF_LOCK | PBF_MAPPED)
#define xfs_buf_read_flags(target, blkno, len, flags) \ #define xfs_buf_read_flags(target, blkno, len, flags) \
pagebuf_get((target), (blkno), (len), \ pagebuf_get((target), (blkno), (len), PBF_READ | (flags))
PBF_READ | PBF_MAPPABLE | flags)
#define xfs_buf_get_flags(target, blkno, len, flags) \ #define xfs_buf_get_flags(target, blkno, len, flags) \
pagebuf_get((target), (blkno), (len), \ pagebuf_get((target), (blkno), (len), (flags))
PBF_MAPPABLE | flags)
static inline int xfs_bawrite(void *mp, page_buf_t *bp) static inline int xfs_bawrite(void *mp, page_buf_t *bp)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment