]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: stop using set_blocksize
authorDarrick J. Wong <djwong@kernel.org>
Wed, 23 Apr 2025 19:54:13 +0000 (12:54 -0700)
committerCarlos Maiolino <cem@kernel.org>
Wed, 14 May 2025 10:22:37 +0000 (12:22 +0200)
commitea31bdece29ac72ebe409cf2bb411abe6e31431a
tree53065e16875a372995bf5a11b3eecae9a6450a28
parent6475ece803e7b41d5a3dcffffc35f6482d4cbb4d
xfs: stop using set_blocksize

XFS has its own buffer cache for metadata that uses submit_bio, which
means that it no longer uses the block device pagecache for anything.
Create a more lightweight helper that runs the blocksize checks and
flushes dirty data and use that instead.  No more truncating the
pagecache because XFS does not use it or care about it.

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