xfs: cleanup mapping tmpfs folios into the buffer cache
authorChristoph Hellwig <hch@lst.de>
Mon, 10 Mar 2025 13:19:14 +0000 (14:19 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 10 Mar 2025 13:29:44 +0000 (14:29 +0100)
commite614a00117bc2d46219c66a287ddde0f0a04517c
treed0aaf5496689921ac3d46d02abb5deffb34eabc1
parente2874632a6213b4687e53cd7d837c642c805c903
xfs: cleanup mapping tmpfs folios into the buffer cache

Directly assign b_addr based on the tmpfs folios without a detour
through pages, reuse the folio_put path used for non-tmpfs buffers
and replace all references to pages in comments with folios.

Partially based on a patch from Dave Chinner <dchinner@redhat.com>.

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_mem.c
fs/xfs/xfs_buf_mem.h