aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2_block.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-11-14 01:53:49 -0500
committerBen Myers <bpm@sgi.com>2012-11-15 22:35:09 -0500
commitb0f539de9fcc543a3ffa40bc22bf51aca6ea6183 (patch)
treefe2e14add152900a3bd480714c886f8a86a2082d /fs/xfs/xfs_dir2_block.c
parent612cfbfe174a89d565363fff7f3961a2dda5fb71 (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_block.c')
-rw-r--r--fs/xfs/xfs_dir2_block.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_dir2_block.c b/fs/xfs/xfs_dir2_block.c
index 0f8793c74fe2..e2fdc6f03d8a 100644
--- a/fs/xfs/xfs_dir2_block.c
+++ b/fs/xfs/xfs_dir2_block.c
@@ -1010,6 +1010,7 @@ xfs_dir2_leaf_to_block(
1010 /* 1010 /*
1011 * Start converting it to block form. 1011 * Start converting it to block form.
1012 */ 1012 */
1013 dbp->b_pre_io = xfs_dir2_block_write_verify;
1013 hdr->magic = cpu_to_be32(XFS_DIR2_BLOCK_MAGIC); 1014 hdr->magic = cpu_to_be32(XFS_DIR2_BLOCK_MAGIC);
1014 needlog = 1; 1015 needlog = 1;
1015 needscan = 0; 1016 needscan = 0;
@@ -1139,6 +1140,7 @@ xfs_dir2_sf_to_block(
1139 kmem_free(sfp); 1140 kmem_free(sfp);
1140 return error; 1141 return error;
1141 } 1142 }
1143 bp->b_pre_io = xfs_dir2_block_write_verify;
1142 hdr = bp->b_addr; 1144 hdr = bp->b_addr;
1143 hdr->magic = cpu_to_be32(XFS_DIR2_BLOCK_MAGIC); 1145 hdr->magic = cpu_to_be32(XFS_DIR2_BLOCK_MAGIC);
1144 /* 1146 /*