summaryrefslogtreecommitdiff
path: root/block/fops.c
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2024-01-23 16:26:47 +0300
committerChristian Brauner <brauner@kernel.org>2024-02-25 14:05:27 +0300
commit7c09a4ed6156c6cab6b951e027ca6ea24af454ba (patch)
treeff4b70d63f03ac3be031970cc249d56dba9bbb14 /block/fops.c
parenta56aefca8d386181415a1fb7cfec2f72b0404797 (diff)
downloadlinux-7c09a4ed6156c6cab6b951e027ca6ea24af454ba.tar.xz
bdev: remove bdev pointer from struct bdev_handle
We can always go directly via: * I_BDEV(bdev_file->f_inode) * I_BDEV(bdev_file->f_mapping->host) So keeping struct bdev in struct bdev_handle is redundant. Link: https://lore.kernel.org/r/20240123-vfs-bdev-file-v2-30-adbd023e19cc@kernel.org Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'block/fops.c')
-rw-r--r--block/fops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/fops.c b/block/fops.c
index a1ba1a50ae77..aab9b89e4c77 100644
--- a/block/fops.c
+++ b/block/fops.c
@@ -623,7 +623,7 @@ static int blkdev_open(struct inode *inode, struct file *filp)
static int blkdev_release(struct inode *inode, struct file *filp)
{
if (filp->private_data)
- bdev_release(filp->private_data);
+ bdev_release(filp);
return 0;
}