]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libxfs: unmap xmbuf pages to avoid disaster
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:21:41 +0000 (10:21 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:15:56 +0000 (09:15 -0800)
commit6b6239689e36e0363ff080fed0adf56a3db3feef
tree9fa87e43d6f2f89921b4f0b6b89de34f4e5b232b
parent83586af40e70b6770782f24ae06bddf98ac9f4c5
libxfs: unmap xmbuf pages to avoid disaster

It turns out that there's a maximum mappings count, so we need to be
smartish about not overflowing that with too many xmbuf buffers.  This
needs to be a global value because high-agcount filesystems will create
a large number of xmbuf caches but this is a process-global limit.

Cc: <linux-xfs@vger.kernel.org> # v6.9.0
Fixes: 124b388dac17f5 ("libxfs: support in-memory buffer cache targets")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
include/cache.h
libxfs/buf_mem.c
libxfs/cache.c