]> git.baikalelectronics.ru Git - kernel.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)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Jan 2019 14:30:54 +0000 (07:30 -0700)
commit02ca58f057e5719beecd13a53e6c7d2e23b9b5a1
treeb1656f6ae8edb9a2ebce5a413fb127534555b899
parentd06b2c410a802722d3fafd28cddc5939bc069fa5
nbd: Use set_blocksize() to set device blocksize

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>
drivers/block/nbd.c