bcache_register(): don't bother with set_blocksize()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 17 Apr 2024 00:12:47 +0000 (20:12 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 2 May 2024 21:23:30 +0000 (17:23 -0400)
commitaf63dd715a5c6b66bbd1485c2189b92c1a3fba41
treedb6404a737744aac575a5737c9d6d941bbc982eb
parent0bbac3facb5d6cc0171c45c9873a2dc96bea9680
bcache_register(): don't bother with set_blocksize()

We are not using __bread() anymore and read_cache_page_gfp() doesn't
care about block size.  Moreover, we should *not* change block
size on a device that is currently held exclusive - filesystems
that use buffer cache expect the block numbers to be interpreted
in units set by filesystem.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christian Brauner <brauner@kernel.org>
ACKed-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/md/bcache/super.c