xfs: reinstate RT support in xfs_bmapi_reserve_delalloc
authorChristoph Hellwig <hch@lst.de>
Mon, 22 Apr 2024 11:20:13 +0000 (13:20 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 22 Apr 2024 12:30:48 +0000 (18:00 +0530)
commitdc1b17a25c321c8f1b4f90f9d6f8afb1d132b69c
tree6c0baacb9a4f482d69ddd8dddcecc5d6d3976a58
parentf30f656e25eb72c4309e76b16fa45062e183a2ee
xfs: reinstate RT support in xfs_bmapi_reserve_delalloc

Allocate data blocks for RT inodes using xfs_dec_frextents.  While at
it optimize the data device case by doing only a single xfs_dec_fdblocks
call for the extent itself and the indirect blocks.

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