diff options
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/ioctl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 20dd8f3b6c72..5441ff1480fd 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -259,7 +259,7 @@ static int btrfs_ioctl_setflags(struct file *file, void __user *arg) | |||
259 | 259 | ||
260 | btrfs_end_transaction(trans, root); | 260 | btrfs_end_transaction(trans, root); |
261 | 261 | ||
262 | mnt_drop_write(file->f_path.mnt); | 262 | mnt_drop_write_file(file); |
263 | 263 | ||
264 | ret = 0; | 264 | ret = 0; |
265 | out_unlock: | 265 | out_unlock: |
@@ -1971,7 +1971,7 @@ out_dput: | |||
1971 | dput(dentry); | 1971 | dput(dentry); |
1972 | out_unlock_dir: | 1972 | out_unlock_dir: |
1973 | mutex_unlock(&dir->i_mutex); | 1973 | mutex_unlock(&dir->i_mutex); |
1974 | mnt_drop_write(file->f_path.mnt); | 1974 | mnt_drop_write_file(file); |
1975 | out: | 1975 | out: |
1976 | kfree(vol_args); | 1976 | kfree(vol_args); |
1977 | return err; | 1977 | return err; |
@@ -2040,7 +2040,7 @@ static int btrfs_ioctl_defrag(struct file *file, void __user *argp) | |||
2040 | ret = -EINVAL; | 2040 | ret = -EINVAL; |
2041 | } | 2041 | } |
2042 | out: | 2042 | out: |
2043 | mnt_drop_write(file->f_path.mnt); | 2043 | mnt_drop_write_file(file); |
2044 | return ret; | 2044 | return ret; |
2045 | } | 2045 | } |
2046 | 2046 | ||
@@ -2510,7 +2510,7 @@ out_unlock: | |||
2510 | out_fput: | 2510 | out_fput: |
2511 | fput(src_file); | 2511 | fput(src_file); |
2512 | out_drop_write: | 2512 | out_drop_write: |
2513 | mnt_drop_write(file->f_path.mnt); | 2513 | mnt_drop_write_file(file); |
2514 | return ret; | 2514 | return ret; |
2515 | } | 2515 | } |
2516 | 2516 | ||
@@ -2565,7 +2565,7 @@ static long btrfs_ioctl_trans_start(struct file *file) | |||
2565 | 2565 | ||
2566 | out_drop: | 2566 | out_drop: |
2567 | atomic_dec(&root->fs_info->open_ioctl_trans); | 2567 | atomic_dec(&root->fs_info->open_ioctl_trans); |
2568 | mnt_drop_write(file->f_path.mnt); | 2568 | mnt_drop_write_file(file); |
2569 | out: | 2569 | out: |
2570 | return ret; | 2570 | return ret; |
2571 | } | 2571 | } |
@@ -2800,7 +2800,7 @@ long btrfs_ioctl_trans_end(struct file *file) | |||
2800 | 2800 | ||
2801 | atomic_dec(&root->fs_info->open_ioctl_trans); | 2801 | atomic_dec(&root->fs_info->open_ioctl_trans); |
2802 | 2802 | ||
2803 | mnt_drop_write(file->f_path.mnt); | 2803 | mnt_drop_write_file(file); |
2804 | return 0; | 2804 | return 0; |
2805 | } | 2805 | } |
2806 | 2806 | ||