]> git.baikalelectronics.ru Git - kernel.git/commit
dm-raid: use set_capacity_and_notify
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Nov 2020 14:57:10 +0000 (15:57 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:34:15 +0000 (08:34 -0700)
commit056d63185e2f3b45d98227e1f8422bc3e3b7c519
tree29b99462402b1d4d7df7fce73ced38b558f4470d
parent9851e4d32a5b4f6893b4acac02096488edf24e4b
dm-raid: use set_capacity_and_notify

Use set_capacity_and_notify to set the size of both the disk and block
device.  This also gets the uevent notifications for the resize for free.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-raid.c