aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-linear.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-linear.c')
-rw-r--r--drivers/md/dm-linear.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c
index 00234909b3db..4a1cee48e652 100644
--- a/drivers/md/dm-linear.c
+++ b/drivers/md/dm-linear.c
@@ -108,7 +108,7 @@ static int linear_ioctl(struct dm_target *ti, struct inode *inode,
108 struct dentry fake_dentry = {}; 108 struct dentry fake_dentry = {};
109 109
110 fake_file.f_mode = lc->dev->mode; 110 fake_file.f_mode = lc->dev->mode;
111 fake_file.f_dentry = &fake_dentry; 111 fake_file.f_path.dentry = &fake_dentry;
112 fake_dentry.d_inode = bdev->bd_inode; 112 fake_dentry.d_inode = bdev->bd_inode;
113 113
114 return blkdev_driver_ioctl(bdev->bd_inode, &fake_file, bdev->bd_disk, cmd, arg); 114 return blkdev_driver_ioctl(bdev->bd_inode, &fake_file, bdev->bd_disk, cmd, arg);