aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2014-06-06 01:06:53 -0400
committerDave Chinner <david@fromorbit.com>2014-06-06 01:06:53 -0400
commit9b3b5522d3f55215ce51c87b0467926c57a6f182 (patch)
treedf132e36493de332a7435211d5b982fcc9049445 /fs/xfs/xfs_dir2.c
parent8c44a28561625d36591cc1540eb5f9033a9d1815 (diff)
xfs: convert dir byte/off conversion to xfs_da_geometry
Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_dir2.c')
-rw-r--r--fs/xfs/xfs_dir2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dir2.c b/fs/xfs/xfs_dir2.c
index 08dfcd1e5e00..2047ef1ce8d2 100644
--- a/fs/xfs/xfs_dir2.c
+++ b/fs/xfs/xfs_dir2.c
@@ -749,7 +749,7 @@ xfs_dir2_shrink_inode(
749 /* 749 /*
750 * If the block isn't the last one in the directory, we're done. 750 * If the block isn't the last one in the directory, we're done.
751 */ 751 */
752 if (dp->i_d.di_size > xfs_dir2_db_off_to_byte(mp, db + 1, 0)) 752 if (dp->i_d.di_size > xfs_dir2_db_off_to_byte(args->geo, db + 1, 0))
753 return 0; 753 return 0;
754 bno = da; 754 bno = da;
755 if ((error = xfs_bmap_last_before(tp, dp, &bno, XFS_DATA_FORK))) { 755 if ((error = xfs_bmap_last_before(tp, dp, &bno, XFS_DATA_FORK))) {