aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2_data.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_data.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_data.c')
-rw-r--r--fs/xfs/xfs_dir2_data.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/xfs/xfs_dir2_data.c b/fs/xfs/xfs_dir2_data.c
index b555585f5ab6..dcb8a873ab92 100644
--- a/fs/xfs/xfs_dir2_data.c
+++ b/fs/xfs/xfs_dir2_data.c
@@ -185,7 +185,7 @@ __xfs_dir2_data_check(
185 return 0; 185 return 0;
186} 186}
187 187
188void 188static void
189xfs_dir2_data_verify( 189xfs_dir2_data_verify(
190 struct xfs_buf *bp) 190 struct xfs_buf *bp)
191{ 191{
@@ -202,14 +202,14 @@ xfs_dir2_data_verify(
202 } 202 }
203} 203}
204 204
205static void 205void
206xfs_dir2_data_write_verify( 206xfs_dir2_data_write_verify(
207 struct xfs_buf *bp) 207 struct xfs_buf *bp)
208{ 208{
209 xfs_dir2_data_verify(bp); 209 xfs_dir2_data_verify(bp);
210} 210}
211 211
212void 212static void
213xfs_dir2_data_read_verify( 213xfs_dir2_data_read_verify(
214 struct xfs_buf *bp) 214 struct xfs_buf *bp)
215{ 215{
@@ -482,10 +482,9 @@ xfs_dir2_data_init(
482 */ 482 */
483 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(mp, blkno), -1, &bp, 483 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(mp, blkno), -1, &bp,
484 XFS_DATA_FORK); 484 XFS_DATA_FORK);
485 if (error) { 485 if (error)
486 return error; 486 return error;
487 } 487 bp->b_pre_io = xfs_dir2_data_write_verify;
488 ASSERT(bp != NULL);
489 488
490 /* 489 /*
491 * Initialize the header. 490 * Initialize the header.