]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: simplify iext overflow checking and upgrade
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Jul 2024 23:22:57 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:05 +0000 (17:01 -0700)
commit7163cfcd7fdbdecffc41a8869391f53e04421790
treeaa73cc93cc2be823669e2e462c1d2d1d8470fd19
parentd0348eb2d1af077c96b61ce3dc82121a16b29543
xfs: simplify iext overflow checking and upgrade

Source kernel commit: 25576c5420e61dea4c2b52942460f2221b8e46e8

Currently the calls to xfs_iext_count_may_overflow and
xfs_iext_count_upgrade are always paired.  Merge them into a single
function to simplify the callers and the actual check and upgrade
logic itself.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
libxfs/xfs_attr.c
libxfs/xfs_bmap.c
libxfs/xfs_inode_fork.c
libxfs/xfs_inode_fork.h