aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2_sf.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_dir2_sf.c')
-rw-r--r--fs/xfs/xfs_dir2_sf.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/xfs/xfs_dir2_sf.c b/fs/xfs/xfs_dir2_sf.c
index ec0d39b5fa12..953e19479151 100644
--- a/fs/xfs/xfs_dir2_sf.c
+++ b/fs/xfs/xfs_dir2_sf.c
@@ -251,11 +251,11 @@ xfs_dir2_block_to_sf(
251 dp->d_ops->sf_put_ino(sfp, sfep, 251 dp->d_ops->sf_put_ino(sfp, sfep,
252 be64_to_cpu(dep->inumber)); 252 be64_to_cpu(dep->inumber));
253 dp->d_ops->sf_put_ftype(sfep, 253 dp->d_ops->sf_put_ftype(sfep,
254 xfs_dir3_dirent_get_ftype(mp, dep)); 254 dp->d_ops->data_get_ftype(dep));
255 255
256 sfep = dp->d_ops->sf_nextentry(sfp, sfep); 256 sfep = dp->d_ops->sf_nextentry(sfp, sfep);
257 } 257 }
258 ptr += xfs_dir3_data_entsize(mp, dep->namelen); 258 ptr += dp->d_ops->data_entsize(dep->namelen);
259 } 259 }
260 ASSERT((char *)sfep - (char *)sfp == size); 260 ASSERT((char *)sfep - (char *)sfp == size);
261 xfs_dir2_sf_check(args); 261 xfs_dir2_sf_check(args);
@@ -473,12 +473,12 @@ xfs_dir2_sf_addname_hard(
473 * to insert the new entry. 473 * to insert the new entry.
474 * If it's going to end up at the end then oldsfep will point there. 474 * If it's going to end up at the end then oldsfep will point there.
475 */ 475 */
476 for (offset = xfs_dir3_data_first_offset(mp), 476 for (offset = dp->d_ops->data_first_offset(),
477 oldsfep = xfs_dir2_sf_firstentry(oldsfp), 477 oldsfep = xfs_dir2_sf_firstentry(oldsfp),
478 add_datasize = xfs_dir3_data_entsize(mp, args->namelen), 478 add_datasize = dp->d_ops->data_entsize(args->namelen),
479 eof = (char *)oldsfep == &buf[old_isize]; 479 eof = (char *)oldsfep == &buf[old_isize];
480 !eof; 480 !eof;
481 offset = new_offset + xfs_dir3_data_entsize(mp, oldsfep->namelen), 481 offset = new_offset + dp->d_ops->data_entsize(oldsfep->namelen),
482 oldsfep = dp->d_ops->sf_nextentry(oldsfp, oldsfep), 482 oldsfep = dp->d_ops->sf_nextentry(oldsfp, oldsfep),
483 eof = (char *)oldsfep == &buf[old_isize]) { 483 eof = (char *)oldsfep == &buf[old_isize]) {
484 new_offset = xfs_dir2_sf_get_offset(oldsfep); 484 new_offset = xfs_dir2_sf_get_offset(oldsfep);
@@ -555,8 +555,8 @@ xfs_dir2_sf_addname_pick(
555 mp = dp->i_mount; 555 mp = dp->i_mount;
556 556
557 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; 557 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data;
558 size = xfs_dir3_data_entsize(mp, args->namelen); 558 size = dp->d_ops->data_entsize(args->namelen);
559 offset = xfs_dir3_data_first_offset(mp); 559 offset = dp->d_ops->data_first_offset();
560 sfep = xfs_dir2_sf_firstentry(sfp); 560 sfep = xfs_dir2_sf_firstentry(sfp);
561 holefit = 0; 561 holefit = 0;
562 /* 562 /*
@@ -568,7 +568,7 @@ xfs_dir2_sf_addname_pick(
568 if (!holefit) 568 if (!holefit)
569 holefit = offset + size <= xfs_dir2_sf_get_offset(sfep); 569 holefit = offset + size <= xfs_dir2_sf_get_offset(sfep);
570 offset = xfs_dir2_sf_get_offset(sfep) + 570 offset = xfs_dir2_sf_get_offset(sfep) +
571 xfs_dir3_data_entsize(mp, sfep->namelen); 571 dp->d_ops->data_entsize(sfep->namelen);
572 sfep = dp->d_ops->sf_nextentry(sfp, sfep); 572 sfep = dp->d_ops->sf_nextentry(sfp, sfep);
573 } 573 }
574 /* 574 /*
@@ -629,7 +629,7 @@ xfs_dir2_sf_check(
629 mp = dp->i_mount; 629 mp = dp->i_mount;
630 630
631 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; 631 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data;
632 offset = xfs_dir3_data_first_offset(mp); 632 offset = dp->d_ops->data_first_offset();
633 ino = dp->d_ops->sf_get_parent_ino(sfp); 633 ino = dp->d_ops->sf_get_parent_ino(sfp);
634 i8count = ino > XFS_DIR2_MAX_SHORT_INUM; 634 i8count = ino > XFS_DIR2_MAX_SHORT_INUM;
635 635
@@ -641,7 +641,7 @@ xfs_dir2_sf_check(
641 i8count += ino > XFS_DIR2_MAX_SHORT_INUM; 641 i8count += ino > XFS_DIR2_MAX_SHORT_INUM;
642 offset = 642 offset =
643 xfs_dir2_sf_get_offset(sfep) + 643 xfs_dir2_sf_get_offset(sfep) +
644 xfs_dir3_data_entsize(mp, sfep->namelen); 644 dp->d_ops->data_entsize(sfep->namelen);
645 ASSERT(dp->d_ops->sf_get_ftype(sfep) < XFS_DIR3_FT_MAX); 645 ASSERT(dp->d_ops->sf_get_ftype(sfep) < XFS_DIR3_FT_MAX);
646 } 646 }
647 ASSERT(i8count == sfp->i8count); 647 ASSERT(i8count == sfp->i8count);