xfs: rework splitting of indirect block reservations
authorChristoph Hellwig <hch@lst.de>
Mon, 22 Apr 2024 11:20:17 +0000 (13:20 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 22 Apr 2024 12:30:49 +0000 (18:00 +0530)
commitda2b9c3a8d2cbdeec3f13cebf4c6c86c13e1077e
tree6ae8cf4ca83570a2291bce0177fa6d4164255de7
parent727f8431638fdb5dc9ce9c81bdcc33fb416d45ee
xfs: rework splitting of indirect block reservations

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>
fs/xfs/libxfs/xfs_bmap.c