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>
Mon, 28 Apr 2025 09:34:14 +0000 (11:34 +0200)
commit5088aad3d32cc0b1c96cbe3e718569ffc0aca4ba
tree5f46f14326c708b868438737307df07f45991426
parentd0d7f1813dc748390673480ad0271a65a7ee5a57
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