OSDN Git Service

xfs: simplify xfs_map_blocks by using xfs_iext_lookup_extent directly
authorChristoph Hellwig <hch@lst.de>
Thu, 12 Jul 2018 05:26:02 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 12 Jul 2018 05:26:02 +0000 (22:26 -0700)
commit3345746ef38bb794ae9d4d0762adf151e452663e
tree1f058d0d203de2386dca75486ec01f37dd81c0e4
parent060d4eaa0bf30a8fc2d189e4d4922f6e9027857b
xfs: simplify xfs_map_blocks by using xfs_iext_lookup_extent directly

xfs_bmapi_read adds zero value in xfs_map_blocks.  Replace it with a
direct call to the low-level extent lookup function.

Note that we now always pass a 0 length to the trace points as we ask
for an unspecified len.

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>
fs/xfs/xfs_aops.c