summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2_leaf.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2012-11-12 22:54:13 +1100
committerBen Myers <bpm@sgi.com>2012-11-15 21:34:43 -0600
commit2025207ca6738a1217126ef14af9d104433f9824 (patch)
tree522cac64d22f59063e16e7e2aec5a1688fa77a6b /fs/xfs/xfs_dir2_leaf.c
parent82025d7f79148fe66a1594a0ebe4ab38152cf9e6 (diff)
downloadlinux-stable-2025207ca6738a1217126ef14af9d104433f9824.tar.gz
linux-stable-2025207ca6738a1217126ef14af9d104433f9824.tar.bz2
linux-stable-2025207ca6738a1217126ef14af9d104433f9824.zip
xfs: factor dir2 free block reading
Also factor out the updating of the free block when removing entries from leaf blocks, and add a verifier callback for reads. 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_leaf.c')
-rw-r--r--fs/xfs/xfs_dir2_leaf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_dir2_leaf.c b/fs/xfs/xfs_dir2_leaf.c
index 86e3dc1de0e7..6c1359dc9898 100644
--- a/fs/xfs/xfs_dir2_leaf.c
+++ b/fs/xfs/xfs_dir2_leaf.c
@@ -1863,8 +1863,7 @@ xfs_dir2_node_to_leaf(
/*
* Read the freespace block.
*/
- error = xfs_da_read_buf(tp, dp, mp->m_dirfreeblk, -1, &fbp,
- XFS_DATA_FORK, NULL);
+ error = xfs_dir2_free_read(tp, dp, mp->m_dirfreeblk, &fbp);
if (error)
return error;
free = fbp->b_addr;