diff options
author | Christoph Hellwig <hch@lst.de> | 2021-04-13 20:15:09 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-04-15 18:35:50 +0200 |
commit | 862a804aae3031e91bd0ae0b13c90a1b13d77af3 (patch) | |
tree | 4f1a04acd49851169c01326b6ed2aaa6fb75143c /fs/xfs/xfs_dir2_readdir.c | |
parent | xfs: drop unnecessary setfilesize helper (diff) | |
download | linux-862a804aae3031e91bd0ae0b13c90a1b13d77af3.tar.xz linux-862a804aae3031e91bd0ae0b13c90a1b13d77af3.zip |
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>
Diffstat (limited to 'fs/xfs/xfs_dir2_readdir.c')
-rw-r--r-- | fs/xfs/xfs_dir2_readdir.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/xfs/xfs_dir2_readdir.c b/fs/xfs/xfs_dir2_readdir.c index 03e7c39a0780..1d2fe48ad19f 100644 --- a/fs/xfs/xfs_dir2_readdir.c +++ b/fs/xfs/xfs_dir2_readdir.c @@ -258,11 +258,9 @@ xfs_dir2_leaf_readbuf( int ra_want; int error = 0; - if (!(ifp->if_flags & XFS_IFEXTENTS)) { - error = xfs_iread_extents(args->trans, dp, XFS_DATA_FORK); - if (error) - goto out; - } + error = xfs_iread_extents(args->trans, dp, XFS_DATA_FORK); + if (error) + goto out; /* * Look for mapped directory blocks at or above the current offset. |