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>
This commit is contained in:

committed by
Darrick J. Wong

parent
5e422f5e4f
commit
e3f0f7563e
@@ -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;
|
||||
|
Reference in New Issue
Block a user