]> git.ipfire.org Git - thirdparty/linux.git/commit
block: remove redundant kill_bdev() call in set_blocksize()
authorYang Xiuwei <yangxiuwei@kylinos.cn>
Tue, 6 Jan 2026 02:42:57 +0000 (10:42 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 4 Feb 2026 16:28:18 +0000 (09:28 -0700)
commitd4d78dd43cecaeaadb24e78927a4d6fda7d1f1d9
tree7b1a15c0d33f61247ea0a66ee605754420412b57
parent2c04718edcd5e1ac8fed9a0f8d0620e8bc94014d
block: remove redundant kill_bdev() call in set_blocksize()

The second kill_bdev() call in set_blocksize() is redundant as the first
call already clears all buffers and pagecache, and locks prevent new
pagecache creation between the calls.

Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bdev.c