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)
commit716ad0986cbd1d3b2ab3f6d23144a94638dac20b
tree6da8fb59b059b6dc1270a6f9a7e211cdeadd2d79
parent5795b6f5607f7e4db62ddea144727780cb351a9b
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