]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite97f91bc090bf265078fa58c786aec8ffaa12469
tree501f071896209b1c464e49d69a1f42f940b6f16b
parent70b125749ee2600bc82e8db84a668bb1b49b4097
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