summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trace.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-10-17 14:16:20 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2017-10-26 15:38:20 -0700
commite3f0f7563e8a2589e3acc26a41f7a7867a33536d (patch)
tree5d24d6fe791e2a13c16b8a2aee1435f6dd2bb522 /fs/xfs/xfs_trace.h
parent5e422f5e4fd71d18bc6b851eeb3864477b3d842e (diff)
downloadlinux-stable-e3f0f7563e8a2589e3acc26a41f7a7867a33536d.tar.gz
linux-stable-e3f0f7563e8a2589e3acc26a41f7a7867a33536d.tar.bz2
linux-stable-e3f0f7563e8a2589e3acc26a41f7a7867a33536d.zip
xfs: use xfs_iext_get_extent instead of open coding it
This avoids exposure to details of the extent list implementation. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> 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_trace.h')
-rw-r--r--fs/xfs/xfs_trace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_trace.h b/fs/xfs/xfs_trace.h
index bb5514688d47..0a8999a310b9 100644
--- a/fs/xfs/xfs_trace.h
+++ b/fs/xfs/xfs_trace.h
@@ -277,7 +277,7 @@ DECLARE_EVENT_CLASS(xfs_bmap_class,
struct xfs_bmbt_irec r;
ifp = xfs_iext_state_to_fork(ip, state);
- xfs_bmbt_get_all(xfs_iext_get_ext(ifp, idx), &r);
+ xfs_iext_get_extent(ifp, idx, &r);
__entry->dev = VFS_I(ip)->i_sb->s_dev;
__entry->ino = ip->i_ino;
__entry->idx = idx;