aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2_block.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-11-12 06:54:14 -0500
committerBen Myers <bpm@sgi.com>2012-11-15 22:34:45 -0500
commite4813572640e27d3a5cce3f06751a9f54f77aaa5 (patch)
treef181db296dace8bac868f89a0a016f5973c18ba1 /fs/xfs/xfs_dir2_block.c
parent2025207ca6738a1217126ef14af9d104433f9824 (diff)
xfs: factor out dir2 data block reading
And add a verifier callback function while there. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Phil White <pwhite@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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_dir2_block.c b/fs/xfs/xfs_dir2_block.c
index 57351b868861..ca03b109772d 100644
--- a/fs/xfs/xfs_dir2_block.c
+++ b/fs/xfs/xfs_dir2_block.c
@@ -970,8 +970,7 @@ xfs_dir2_leaf_to_block(
970 * Read the data block if we don't already have it, give up if it fails. 970 * Read the data block if we don't already have it, give up if it fails.
971 */ 971 */
972 if (!dbp) { 972 if (!dbp) {
973 error = xfs_da_read_buf(tp, dp, mp->m_dirdatablk, -1, &dbp, 973 error = xfs_dir2_data_read(tp, dp, mp->m_dirdatablk, -1, &dbp);
974 XFS_DATA_FORK, NULL);
975 if (error) 974 if (error)
976 return error; 975 return error;
977 } 976 }