]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: reinstate RT support in xfs_bmapi_reserve_delalloc
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)
commit497b0097b2da7431477acfffbaf2ca6e40da483b
treef0561e725a728e3345d8f1e03fc105d02cc84d57
parentde959abb00d9479172aa500721ba6c43c5e4cb9b
xfs: reinstate RT support in xfs_bmapi_reserve_delalloc

Source kernel commit: dc1b17a25c321c8f1b4f90f9d6f8afb1d132b69c

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