]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: rework splitting of indirect block reservations
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Jul 2024 23:22:42 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:01 +0000 (17:01 -0700)
commit0eec275070f9c73e6cd933b92e282b296c03d7c7
treec7828c665a7b2de42b5f216a71bcb284265a4ee8
parentac315eafcb5f5fd3d8368c4b4fffffd99488d30c
xfs: rework splitting of indirect block reservations

Source kernel commit: da2b9c3a8d2cbdeec3f13cebf4c6c86c13e1077e

Move the check if we have enough indirect blocks and the stealing of
the deleted extent blocks out of xfs_bmap_split_indlen and into the
caller to prepare for handling delayed allocation of RT extents that
can't easily be stolen.

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