block: always use I_BDEV on file->f_mapping->host to find the bdev
authorChristoph Hellwig <hch@lst.de>
Thu, 8 Jun 2023 11:02:56 +0000 (13:02 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Jun 2023 14:04:05 +0000 (08:04 -0600)
commit4e762d8623448bb9d32711832ce977a65ff7636a
treec5aa5b848d7f74731566bd8b1a9dd5a6e631a088
parent05bdb9965305bbfdae79b31d22df03d1e2cfcb22
block: always use I_BDEV on file->f_mapping->host to find the bdev

Always use I_BDEV(file->f_mapping->host) to find the bdev for a file to
free up file->private_data for other uses.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Christian Brauner <brauner@kernel.org>
Link: https://lore.kernel.org/r/20230608110258.189493-29-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/fops.c