xfs: move the XFS_IFEXTENTS check into xfs_iread_extents
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Apr 2021 18:15:09 +0000 (11:15 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 15 Apr 2021 16:35:50 +0000 (09:35 -0700)
commit862a804aae3031e91bd0ae0b13c90a1b13d77af3
tree4f1a04acd49851169c01326b6ed2aaa6fb75143c
parente7a3d7e792a5ad50583a2e6c35e72bd2ca6096f4
xfs: move the XFS_IFEXTENTS check into xfs_iread_extents

Move the XFS_IFEXTENTS check from the callers into xfs_iread_extents to
simplify the code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/scrub/bmap.c
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_dir2_readdir.c
fs/xfs/xfs_dquot.c
fs/xfs/xfs_iomap.c
fs/xfs/xfs_qm.c
fs/xfs/xfs_reflink.c