aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_buf.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@sgi.com>2005-11-01 18:29:39 -0500
committerNathan Scott <nathans@sgi.com>2005-11-01 18:29:39 -0500
commitc86e711ceb4ad03c98a7aa29bcab8613e9f57788 (patch)
treeb4f1328bfe4b3559b841faa1b461f72daf7e609f /fs/xfs/linux-2.6/xfs_buf.h
parentd0cfb37305baef74903872cbb799174d0d353fd9 (diff)
[XFS] only mark buffers done when all pages are uptodate in addition
replace PBF_NONE with an inverted PBF_DONE, so it's like all the other flags. SGI-PV: 942609 SGI-Modid: xfs-linux:xfs-kern:199136a Signed-off-by: Christoph Hellwig <hch@sgi.com> Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_buf.h')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.h b/fs/xfs/linux-2.6/xfs_buf.h
index fa21d1f9cb0b..882901ca7eed 100644
--- a/fs/xfs/linux-2.6/xfs_buf.h
+++ b/fs/xfs/linux-2.6/xfs_buf.h
@@ -70,7 +70,7 @@ typedef enum page_buf_flags_e { /* pb_flags values */
70 PBF_WRITE = (1 << 1), /* buffer intended for writing to device */ 70 PBF_WRITE = (1 << 1), /* buffer intended for writing to device */
71 PBF_MAPPED = (1 << 2), /* buffer mapped (pb_addr valid) */ 71 PBF_MAPPED = (1 << 2), /* buffer mapped (pb_addr valid) */
72 PBF_ASYNC = (1 << 4), /* initiator will not wait for completion */ 72 PBF_ASYNC = (1 << 4), /* initiator will not wait for completion */
73 PBF_NONE = (1 << 5), /* buffer not read at all */ 73 PBF_DONE = (1 << 5), /* all pages in the buffer uptodate */
74 PBF_DELWRI = (1 << 6), /* buffer has dirty pages */ 74 PBF_DELWRI = (1 << 6), /* buffer has dirty pages */
75 PBF_STALE = (1 << 7), /* buffer has been staled, do not find it */ 75 PBF_STALE = (1 << 7), /* buffer has been staled, do not find it */
76 PBF_FS_MANAGED = (1 << 8), /* filesystem controls freeing memory */ 76 PBF_FS_MANAGED = (1 << 8), /* filesystem controls freeing memory */
@@ -371,9 +371,9 @@ extern void pagebuf_trace(
371#define XFS_BUF_GETERROR(x) pagebuf_geterror(x) 371#define XFS_BUF_GETERROR(x) pagebuf_geterror(x)
372#define XFS_BUF_ISERROR(x) (pagebuf_geterror(x)?1:0) 372#define XFS_BUF_ISERROR(x) (pagebuf_geterror(x)?1:0)
373 373
374#define XFS_BUF_DONE(x) ((x)->pb_flags &= ~PBF_NONE) 374#define XFS_BUF_DONE(x) ((x)->pb_flags |= PBF_DONE)
375#define XFS_BUF_UNDONE(x) ((x)->pb_flags |= PBF_NONE) 375#define XFS_BUF_UNDONE(x) ((x)->pb_flags &= ~PBF_DONE)
376#define XFS_BUF_ISDONE(x) (((x)->pb_flags & PBF_NONE) == 0) 376#define XFS_BUF_ISDONE(x) ((x)->pb_flags & PBF_DONE)
377 377
378#define XFS_BUF_BUSY(x) do { } while (0) 378#define XFS_BUF_BUSY(x) do { } while (0)
379#define XFS_BUF_UNBUSY(x) do { } while (0) 379#define XFS_BUF_UNBUSY(x) do { } while (0)