mm: cleanup claim_swapfile
authorChristoph Hellwig <hch@lst.de>
Mon, 21 Sep 2020 07:19:54 +0000 (09:19 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Sep 2020 16:43:19 +0000 (10:43 -0600)
commitef16e1d98c4e05338ab9c381ac0100a4ed0626ca
treeb8fa6f09eaf457182290dbd43a24ad2196fb0883
parente455ed22906c02c7638e127dbf60634765db02cd
mm: cleanup claim_swapfile

Use blkdev_get_by_dev instead of bdgrab + blkdev_get.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/swapfile.c