]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: reduce metafile reservations
authorChristoph Hellwig <hch@lst.de>
Fri, 17 Jan 2025 05:55:08 +0000 (06:55 +0100)
committerChristoph Hellwig <hch@lst.de>
Wed, 26 Feb 2025 01:19:32 +0000 (17:19 -0800)
commit0ff604d733f3a485c2f38e14a58d81372c8cfb83
tree4384ce7b0bde28a0c537cf25c8c0f2059bedb027
parent46b3963041fa3993b0ea9f0eb9b4227d15647efd
xfs: reduce metafile reservations

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