summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2_readdir.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-11-09 00:05:36 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2019-11-11 01:54:23 +0100
commit5c072127d31d3a605a3048dc5d3fdfc0cdd47212 (patch)
tree752dfc64d8b68b1305cb474fdfa81124172085ec /fs/xfs/xfs_dir2_readdir.c
parentxfs: remove the now unused ->data_entry_p method (diff)
downloadlinux-5c072127d31d3a605a3048dc5d3fdfc0cdd47212.tar.xz
linux-5c072127d31d3a605a3048dc5d3fdfc0cdd47212.zip
xfs: replace xfs_dir3_data_endp with xfs_dir3_data_end_offset
All the callers really want an offset into the buffer, so adopt the helper to return that instead. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_dir2_readdir.c')
-rw-r--r--fs/xfs/xfs_dir2_readdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dir2_readdir.c b/fs/xfs/xfs_dir2_readdir.c
index 4a29921d8880..bf3a98967153 100644
--- a/fs/xfs/xfs_dir2_readdir.c
+++ b/fs/xfs/xfs_dir2_readdir.c
@@ -175,7 +175,7 @@ xfs_dir2_block_getdents(
* Each object is a real entry (dep) or an unused one (dup).
*/
offset = dp->d_ops->data_entry_offset;
- end = xfs_dir3_data_endp(geo, bp->b_addr) - bp->b_addr;
+ end = xfs_dir3_data_end_offset(geo, bp->b_addr);
while (offset < end) {
struct xfs_dir2_data_unused *dup = bp->b_addr + offset;
struct xfs_dir2_data_entry *dep = bp->b_addr + offset;