]> git.baikalelectronics.ru Git - kernel.git/commit
loop: Switch to set_capacity_revalidate_and_notify()
authorMartijn Coenen <maco@android.com>
Wed, 13 May 2020 13:38:38 +0000 (15:38 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 May 2020 14:20:34 +0000 (08:20 -0600)
commitf0514201a27903e05f9d34b0dca80835a8b0da42
tree6da8fb59b059b6dc1270a6f9a7e211cdeadd2d79
parent662d1f8941091dae6645b9d3f19af742ecd9f4f3
loop: Switch to set_capacity_revalidate_and_notify()

This was recently added to block/genhd.c, and takes care of both
updating the capacity and notifying userspace of the new size.

Signed-off-by: Martijn Coenen <maco@android.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c