diff options
author | Christoph Hellwig <hch@lst.de> | 2021-04-13 21:15:09 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-04-15 19:35:50 +0300 |
commit | 862a804aae3031e91bd0ae0b13c90a1b13d77af3 (patch) | |
tree | 4f1a04acd49851169c01326b6ed2aaa6fb75143c /fs/xfs/xfs_dquot.c | |
parent | e7a3d7e792a5ad50583a2e6c35e72bd2ca6096f4 (diff) | |
download | linux-862a804aae3031e91bd0ae0b13c90a1b13d77af3.tar.xz |
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_dquot.c')
-rw-r--r-- | fs/xfs/xfs_dquot.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/xfs/xfs_dquot.c b/fs/xfs/xfs_dquot.c index 7fb63a04400f..ecd5059d6928 100644 --- a/fs/xfs/xfs_dquot.c +++ b/fs/xfs/xfs_dquot.c @@ -748,11 +748,9 @@ xfs_dq_get_next_id( start = (xfs_fsblock_t)next_id / mp->m_quotainfo->qi_dqperchunk; lock_flags = xfs_ilock_data_map_shared(quotip); - if (!(quotip->i_df.if_flags & XFS_IFEXTENTS)) { - error = xfs_iread_extents(NULL, quotip, XFS_DATA_FORK); - if (error) - return error; - } + error = xfs_iread_extents(NULL, quotip, XFS_DATA_FORK); + if (error) + return error; if (xfs_iext_lookup_extent(quotip, "ip->i_df, start, &cur, &got)) { /* contiguous chunk, bump startoff for the id calculation */ |