]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: use vmalloc instead of vm_map_area for buffer backing memory
authorChristoph Hellwig <hch@lst.de>
Mon, 10 Mar 2025 13:19:13 +0000 (14:19 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 10 Mar 2025 13:29:44 +0000 (14:29 +0100)
commite2874632a6213b4687e53cd7d837c642c805c903
tree6eb552e276b84d66a5ad29933d042864030fdbf6
parentfd87851680edcb931b2ec4caf23b4abbea126fc3
xfs: use vmalloc instead of vm_map_area for buffer backing memory

The fallback buffer allocation path currently open codes a suboptimal
version of vmalloc to allocate pages that are then mapped into
vmalloc space.  Switch to using vmalloc instead, which uses all the
optimizations in the common vmalloc code, and removes the need to
track the backing pages in the xfs_buf structure.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_buf.c
fs/xfs/xfs_buf.h
fs/xfs/xfs_buf_mem.c