diff options
Diffstat (limited to 'fs/xfs/xfs_dir2_readdir.c')
-rw-r--r-- | fs/xfs/xfs_dir2_readdir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_dir2_readdir.c b/fs/xfs/xfs_dir2_readdir.c index b99aa7d48e90..f45ecac821ec 100644 --- a/fs/xfs/xfs_dir2_readdir.c +++ b/fs/xfs/xfs_dir2_readdir.c | |||
@@ -213,7 +213,7 @@ xfs_dir2_block_getdents( | |||
213 | * Set up values for the loop. | 213 | * Set up values for the loop. |
214 | */ | 214 | */ |
215 | btp = xfs_dir2_block_tail_p(mp, hdr); | 215 | btp = xfs_dir2_block_tail_p(mp, hdr); |
216 | ptr = (char *)xfs_dir3_data_entry_p(hdr); | 216 | ptr = (char *)dp->d_ops->data_entry_p(hdr); |
217 | endptr = (char *)xfs_dir2_block_leaf_p(btp); | 217 | endptr = (char *)xfs_dir2_block_leaf_p(btp); |
218 | 218 | ||
219 | /* | 219 | /* |
@@ -578,13 +578,13 @@ xfs_dir2_leaf_getdents( | |||
578 | /* | 578 | /* |
579 | * Find our position in the block. | 579 | * Find our position in the block. |
580 | */ | 580 | */ |
581 | ptr = (char *)xfs_dir3_data_entry_p(hdr); | 581 | ptr = (char *)dp->d_ops->data_entry_p(hdr); |
582 | byteoff = xfs_dir2_byte_to_off(mp, curoff); | 582 | byteoff = xfs_dir2_byte_to_off(mp, curoff); |
583 | /* | 583 | /* |
584 | * Skip past the header. | 584 | * Skip past the header. |
585 | */ | 585 | */ |
586 | if (byteoff == 0) | 586 | if (byteoff == 0) |
587 | curoff += xfs_dir3_data_entry_offset(hdr); | 587 | curoff += dp->d_ops->data_entry_offset(); |
588 | /* | 588 | /* |
589 | * Skip past entries until we reach our offset. | 589 | * Skip past entries until we reach our offset. |
590 | */ | 590 | */ |