]> git.itanic.dy.fi Git - linux-stable/commit
xfs: also use xfs_bmap_btalloc_accounting for RT allocations
authorChristoph Hellwig <hch@lst.de>
Mon, 18 Dec 2023 04:57:20 +0000 (05:57 +0100)
committerChandan Babu R <chandanbabu@kernel.org>
Fri, 22 Dec 2023 05:48:11 +0000 (11:18 +0530)
commit58643460546da1dc61593fc6fd78762798b4534f
tree585eefcc5213151aa6bdc223d5992c46780f00e3
parenteef519d746bbfb90cbad4077c2d39d7a359c3282
xfs: also use xfs_bmap_btalloc_accounting for RT allocations

Make xfs_bmap_btalloc_accounting more generic by handling the RT quota
reservations and then also use it from xfs_bmap_rtalloc instead of
open coding the accounting logic there.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/xfs_bmap_util.c