aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2_leaf.c
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2014-06-06 01:11:18 -0400
committerDave Chinner <david@fromorbit.com>2014-06-06 01:11:18 -0400
commit7dda6e8644a31c366484bbcb564ea6c6225e5963 (patch)
treedc950e33f53c391aabdf775d513f3fa92ad39792 /fs/xfs/xfs_dir2_leaf.c
parent30028030b14d083123c88e3ab45990a8c375abf1 (diff)
xfs: convert directory segment limits 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_leaf.c')
-rw-r--r--fs/xfs/xfs_dir2_leaf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/xfs/xfs_dir2_leaf.c b/fs/xfs/xfs_dir2_leaf.c
index 2b3ddd061d0e..3eb8b240d018 100644
--- a/fs/xfs/xfs_dir2_leaf.c
+++ b/fs/xfs/xfs_dir2_leaf.c
@@ -641,7 +641,7 @@ xfs_dir2_leaf_addname(
641 tp = args->trans; 641 tp = args->trans;
642 mp = dp->i_mount; 642 mp = dp->i_mount;
643 643
644 error = xfs_dir3_leaf_read(tp, dp, mp->m_dirleafblk, -1, &lbp); 644 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp);
645 if (error) 645 if (error)
646 return error; 646 return error;
647 647
@@ -1232,7 +1232,7 @@ xfs_dir2_leaf_lookup_int(
1232 tp = args->trans; 1232 tp = args->trans;
1233 mp = dp->i_mount; 1233 mp = dp->i_mount;
1234 1234
1235 error = xfs_dir3_leaf_read(tp, dp, mp->m_dirleafblk, -1, &lbp); 1235 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp);
1236 if (error) 1236 if (error)
1237 return error; 1237 return error;
1238 1238
@@ -1429,7 +1429,7 @@ xfs_dir2_leaf_removename(
1429 */ 1429 */
1430 if (be16_to_cpu(bf[0].length) == 1430 if (be16_to_cpu(bf[0].length) ==
1431 mp->m_dirblksize - dp->d_ops->data_entry_offset) { 1431 mp->m_dirblksize - dp->d_ops->data_entry_offset) {
1432 ASSERT(db != mp->m_dirdatablk); 1432 ASSERT(db != args->geo->datablk);
1433 if ((error = xfs_dir2_shrink_inode(args, db, dbp))) { 1433 if ((error = xfs_dir2_shrink_inode(args, db, dbp))) {
1434 /* 1434 /*
1435 * Nope, can't get rid of it because it caused 1435 * Nope, can't get rid of it because it caused
@@ -1470,7 +1470,7 @@ xfs_dir2_leaf_removename(
1470 /* 1470 /*
1471 * If the data block was not the first one, drop it. 1471 * If the data block was not the first one, drop it.
1472 */ 1472 */
1473 else if (db != mp->m_dirdatablk) 1473 else if (db != args->geo->datablk)
1474 dbp = NULL; 1474 dbp = NULL;
1475 1475
1476 xfs_dir3_leaf_check(dp, lbp); 1476 xfs_dir3_leaf_check(dp, lbp);
@@ -1722,7 +1722,7 @@ xfs_dir2_node_to_leaf(
1722 * that may have been left behind during no-space-reservation 1722 * that may have been left behind during no-space-reservation
1723 * operations. 1723 * operations.
1724 */ 1724 */
1725 while (fo > mp->m_dirfreeblk) { 1725 while (fo > args->geo->freeblk) {
1726 if ((error = xfs_dir2_node_trim_free(args, fo, &rval))) { 1726 if ((error = xfs_dir2_node_trim_free(args, fo, &rval))) {
1727 return error; 1727 return error;
1728 } 1728 }
@@ -1752,7 +1752,7 @@ xfs_dir2_node_to_leaf(
1752 /* 1752 /*
1753 * Read the freespace block. 1753 * Read the freespace block.
1754 */ 1754 */
1755 error = xfs_dir2_free_read(tp, dp, mp->m_dirfreeblk, &fbp); 1755 error = xfs_dir2_free_read(tp, dp, args->geo->freeblk, &fbp);
1756 if (error) 1756 if (error)
1757 return error; 1757 return error;
1758 free = fbp->b_addr; 1758 free = fbp->b_addr;