]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: constrain dirty buffers while formatting a staged btree
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 23:07:37 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:25 +0000 (14:06 -0700)
commit8c1ed622b39ae56ffdb5ea976a112e449a9950cd
treee6b8beb6912b8093ff6caaaeffda27787034a60e
parentd05b191b8ab7c71d3c628f7732a65f859d56e46c
xfs: constrain dirty buffers while formatting a staged btree

Source kernel commit: e069d549705e49841247acf9b3176744e27d5425

Constrain the number of dirty buffers that are locked by the btree
staging code at any given time by establishing a threshold at which we
put them all on the delwri queue and push them to disk.  This limits
memory consumption while writing out new btrees.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
libxfs/xfs_btree_staging.c
libxfs/xfs_btree_staging.h
repair/agbtree.c