diff options
Diffstat (limited to 'fs/hfsplus/ioctl.c')
-rw-r--r-- | fs/hfsplus/ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/hfsplus/ioctl.c b/fs/hfsplus/ioctl.c index fbaa6690c8e0..f66c7655b3f7 100644 --- a/fs/hfsplus/ioctl.c +++ b/fs/hfsplus/ioctl.c | |||
@@ -43,7 +43,7 @@ static int hfsplus_ioctl_setflags(struct file *file, int __user *user_flags) | |||
43 | unsigned int flags; | 43 | unsigned int flags; |
44 | int err = 0; | 44 | int err = 0; |
45 | 45 | ||
46 | err = mnt_want_write(file->f_path.mnt); | 46 | err = mnt_want_write_file(file); |
47 | if (err) | 47 | if (err) |
48 | goto out; | 48 | goto out; |
49 | 49 | ||
@@ -94,7 +94,7 @@ static int hfsplus_ioctl_setflags(struct file *file, int __user *user_flags) | |||
94 | out_unlock_inode: | 94 | out_unlock_inode: |
95 | mutex_unlock(&inode->i_mutex); | 95 | mutex_unlock(&inode->i_mutex); |
96 | out_drop_write: | 96 | out_drop_write: |
97 | mnt_drop_write(file->f_path.mnt); | 97 | mnt_drop_write_file(file); |
98 | out: | 98 | out: |
99 | return err; | 99 | return err; |
100 | } | 100 | } |