diff options
Diffstat (limited to 'fs/xfs/xfs_buf_item.h')
-rw-r--r-- | fs/xfs/xfs_buf_item.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/fs/xfs/xfs_buf_item.h b/fs/xfs/xfs_buf_item.h index ee36c88ecfde..101ef8377f1b 100644 --- a/fs/xfs/xfs_buf_item.h +++ b/fs/xfs/xfs_buf_item.h | |||
@@ -24,19 +24,33 @@ extern kmem_zone_t *xfs_buf_item_zone; | |||
24 | * This flag indicates that the buffer contains on disk inodes | 24 | * This flag indicates that the buffer contains on disk inodes |
25 | * and requires special recovery handling. | 25 | * and requires special recovery handling. |
26 | */ | 26 | */ |
27 | #define XFS_BLF_INODE_BUF 0x1 | 27 | #define XFS_BLF_INODE_BUF (1<<0) |
28 | /* | 28 | /* |
29 | * This flag indicates that the buffer should not be replayed | 29 | * This flag indicates that the buffer should not be replayed |
30 | * during recovery because its blocks are being freed. | 30 | * during recovery because its blocks are being freed. |
31 | */ | 31 | */ |
32 | #define XFS_BLF_CANCEL 0x2 | 32 | #define XFS_BLF_CANCEL (1<<1) |
33 | |||
33 | /* | 34 | /* |
34 | * This flag indicates that the buffer contains on disk | 35 | * This flag indicates that the buffer contains on disk |
35 | * user or group dquots and may require special recovery handling. | 36 | * user or group dquots and may require special recovery handling. |
36 | */ | 37 | */ |
37 | #define XFS_BLF_UDQUOT_BUF 0x4 | 38 | #define XFS_BLF_UDQUOT_BUF (1<<2) |
38 | #define XFS_BLF_PDQUOT_BUF 0x8 | 39 | #define XFS_BLF_PDQUOT_BUF (1<<3) |
39 | #define XFS_BLF_GDQUOT_BUF 0x10 | 40 | #define XFS_BLF_GDQUOT_BUF (1<<4) |
41 | |||
42 | /* | ||
43 | * all buffers now need flags to tell recovery where the magic number | ||
44 | * is so that it can verify and calculate the CRCs on the buffer correctly | ||
45 | * once the changes have been replayed into the buffer. | ||
46 | */ | ||
47 | #define XFS_BLF_BTREE_BUF (1<<5) | ||
48 | |||
49 | #define XFS_BLF_TYPE_MASK \ | ||
50 | (XFS_BLF_UDQUOT_BUF | \ | ||
51 | XFS_BLF_PDQUOT_BUF | \ | ||
52 | XFS_BLF_GDQUOT_BUF | \ | ||
53 | XFS_BLF_BTREE_BUF) | ||
40 | 54 | ||
41 | #define XFS_BLF_CHUNK 128 | 55 | #define XFS_BLF_CHUNK 128 |
42 | #define XFS_BLF_SHIFT 7 | 56 | #define XFS_BLF_SHIFT 7 |