]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Define max extent length based on on-disk format definition
authorChandan Babu R <chandan.babu@oracle.com>
Mon, 9 Aug 2021 06:35:22 +0000 (12:05 +0530)
committerChandan Babu R <chandan.babu@oracle.com>
Mon, 11 Apr 2022 04:11:17 +0000 (04:11 +0000)
commit70b125749ee2600bc82e8db84a668bb1b49b4097
tree6ad802b3e0cc7f9cccc1d7e051bc7d5c6f003955
parent47e4564890dc175b6eac14de4488407635950ba7
xfs: Define max extent length based on on-disk format definition

The maximum extent length depends on maximum block count that can be stored in
a BMBT record. Hence this commit defines MAXEXTLEN based on
BMBT_BLOCKCOUNT_BITLEN.

While at it, the commit also renames MAXEXTLEN to XFS_MAX_BMBT_EXTLEN.

Suggested-by: Darrick J. Wong <djwong@kernel.org>
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_alloc.c
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_format.h
fs/xfs/libxfs/xfs_inode_buf.c
fs/xfs/libxfs/xfs_trans_resv.c
fs/xfs/scrub/bmap.c
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_iomap.c