xfs: Introduce xfs_iext_max_nextents() helper
authorChandan Babu R <chandan.babu@oracle.com>
Thu, 27 Aug 2020 09:39:10 +0000 (15:09 +0530)
committerChandan Babu R <chandan.babu@oracle.com>
Mon, 11 Apr 2022 04:11:17 +0000 (04:11 +0000)
commit9feb8f19665c8ba051c6a81aa7897149e7748e1e
tree501f071896209b1c464e49d69a1f42f940b6f16b
parent95f0b95e2b686ceaa3f465e9fa079f22e0fe7665
xfs: Introduce xfs_iext_max_nextents() helper

xfs_iext_max_nextents() returns the maximum number of extents possible for one
of data, cow or attribute fork. This helper will be extended further in a
future commit when maximum extent counts associated with data/attribute forks
are increased.

Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_inode_buf.c
fs/xfs/libxfs/xfs_inode_fork.c
fs/xfs/libxfs/xfs_inode_fork.h