]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: reduce metafile reservations
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Apr 2025 05:35:48 +0000 (07:35 +0200)
committerAndrey Albershteyn <aalbersh@kernel.org>
Tue, 29 Apr 2025 16:09:57 +0000 (18:09 +0200)
commit433f46a5b7d3f6fad28518044486bbdd4b46aad9
tree4a7cd8df945172fef70766f9fbc0489877218ec4
parent7e427bb1b73433d49e62d81161b70e8b703e0b4d
xfs: reduce metafile reservations

Source kernel commit: 272e20bb24dc895375ccc18a82596a7259b5a652

There is no point in reserving more space than actually available
on the data device for the worst case scenario that is unlikely to
happen.  Reserve at most 1/4th of the data device blocks, which is
still a heuristic.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_metafile.c