]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nbd: Use set_blocksize() to set device blocksize
authorJan Kara <jack@suse.cz>
Mon, 14 Jan 2019 08:48:09 +0000 (09:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Jan 2019 07:09:51 +0000 (08:09 +0100)
commitc2912ca3f893a14fd24a6cad165acf61f4d7bc01
tree50023f31d241ce646d9eea29819aabce81f2356b
parent4381a9484b4772589021c61e682177e1602b32fb
nbd: Use set_blocksize() to set device blocksize

commit c8a83a6b54d0ca078de036aafb3f6af58c1dc5eb upstream.

NBD can update block device block size implicitely through
bd_set_size(). Make it explicitely set blocksize with set_blocksize() as
this behavior of bd_set_size() is going away.

CC: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/nbd.c