diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-11-14 01:53:49 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-11-15 22:35:09 -0500 |
commit | b0f539de9fcc543a3ffa40bc22bf51aca6ea6183 (patch) | |
tree | fe2e14add152900a3bd480714c886f8a86a2082d /fs/xfs/xfs_dir2_priv.h | |
parent | 612cfbfe174a89d565363fff7f3961a2dda5fb71 (diff) |
xfs: connect up write verifiers to new buffers
Metadata buffers that are read from disk have write verifiers
already attached to them, but newly allocated buffers do not. Add
appropriate write verifiers to all new metadata buffers.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dir2_priv.h')
-rw-r--r-- | fs/xfs/xfs_dir2_priv.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_dir2_priv.h b/fs/xfs/xfs_dir2_priv.h index 7ec61af8449f..01b82dcddc3e 100644 --- a/fs/xfs/xfs_dir2_priv.h +++ b/fs/xfs/xfs_dir2_priv.h | |||
@@ -45,6 +45,7 @@ extern int xfs_dir2_leaf_to_block(struct xfs_da_args *args, | |||
45 | #else | 45 | #else |
46 | #define xfs_dir2_data_check(dp,bp) | 46 | #define xfs_dir2_data_check(dp,bp) |
47 | #endif | 47 | #endif |
48 | extern void xfs_dir2_data_write_verify(struct xfs_buf *bp); | ||
48 | extern int __xfs_dir2_data_check(struct xfs_inode *dp, struct xfs_buf *bp); | 49 | extern int __xfs_dir2_data_check(struct xfs_inode *dp, struct xfs_buf *bp); |
49 | extern int xfs_dir2_data_read(struct xfs_trans *tp, struct xfs_inode *dp, | 50 | extern int xfs_dir2_data_read(struct xfs_trans *tp, struct xfs_inode *dp, |
50 | xfs_dablk_t bno, xfs_daddr_t mapped_bno, struct xfs_buf **bpp); | 51 | xfs_dablk_t bno, xfs_daddr_t mapped_bno, struct xfs_buf **bpp); |
@@ -73,6 +74,7 @@ extern void xfs_dir2_data_use_free(struct xfs_trans *tp, struct xfs_buf *bp, | |||
73 | 74 | ||
74 | /* xfs_dir2_leaf.c */ | 75 | /* xfs_dir2_leaf.c */ |
75 | extern void xfs_dir2_leafn_read_verify(struct xfs_buf *bp); | 76 | extern void xfs_dir2_leafn_read_verify(struct xfs_buf *bp); |
77 | extern void xfs_dir2_leafn_write_verify(struct xfs_buf *bp); | ||
76 | extern int xfs_dir2_leafn_read(struct xfs_trans *tp, struct xfs_inode *dp, | 78 | extern int xfs_dir2_leafn_read(struct xfs_trans *tp, struct xfs_inode *dp, |
77 | xfs_dablk_t fbno, xfs_daddr_t mappedbno, struct xfs_buf **bpp); | 79 | xfs_dablk_t fbno, xfs_daddr_t mappedbno, struct xfs_buf **bpp); |
78 | extern int xfs_dir2_block_to_leaf(struct xfs_da_args *args, | 80 | extern int xfs_dir2_block_to_leaf(struct xfs_da_args *args, |