diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 15:19:57 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-08 15:19:57 -0500 |
commit | 972b2c719990f91eb3b2310d44ef8a2d38955a14 (patch) | |
tree | b25a250ec5bec4b7b6355d214642d8b57c5cab32 /fs/btrfs/ioctl.c | |
parent | 02550d61f49266930e674286379d3601006b2893 (diff) | |
parent | c3aa077648e147783a7a53b409578234647db853 (diff) |
Merge branch 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
* 'for-linus2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (165 commits)
reiserfs: Properly display mount options in /proc/mounts
vfs: prevent remount read-only if pending removes
vfs: count unlinked inodes
vfs: protect remounting superblock read-only
vfs: keep list of mounts for each superblock
vfs: switch ->show_options() to struct dentry *
vfs: switch ->show_path() to struct dentry *
vfs: switch ->show_devname() to struct dentry *
vfs: switch ->show_stats to struct dentry *
switch security_path_chmod() to struct path *
vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb
vfs: trim includes a bit
switch mnt_namespace ->root to struct mount
vfs: take /proc/*/mounts and friends to fs/proc_namespace.c
vfs: opencode mntget() mnt_set_mountpoint()
vfs: spread struct mount - remaining argument of next_mnt()
vfs: move fsnotify junk to struct mount
vfs: move mnt_devname
vfs: move mnt_list to struct mount
vfs: switch pnode.h macros to struct mount *
...
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index c04f02c7d5bb..5441ff1480fd 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -201,7 +201,7 @@ static int btrfs_ioctl_setflags(struct file *file, void __user *arg) | |||
201 | } | 201 | } |
202 | } | 202 | } |
203 | 203 | ||
204 | ret = mnt_want_write(file->f_path.mnt); | 204 | ret = mnt_want_write_file(file); |
205 | if (ret) | 205 | if (ret) |
206 | goto out_unlock; | 206 | goto out_unlock; |
207 | 207 | ||
@@ -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: |
@@ -1855,7 +1855,7 @@ static noinline int btrfs_ioctl_snap_destroy(struct file *file, | |||
1855 | goto out; | 1855 | goto out; |
1856 | } | 1856 | } |
1857 | 1857 | ||
1858 | err = mnt_want_write(file->f_path.mnt); | 1858 | err = mnt_want_write_file(file); |
1859 | if (err) | 1859 | if (err) |
1860 | goto out; | 1860 | goto out; |
1861 | 1861 | ||
@@ -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; |
@@ -1987,7 +1987,7 @@ static int btrfs_ioctl_defrag(struct file *file, void __user *argp) | |||
1987 | if (btrfs_root_readonly(root)) | 1987 | if (btrfs_root_readonly(root)) |
1988 | return -EROFS; | 1988 | return -EROFS; |
1989 | 1989 | ||
1990 | ret = mnt_want_write(file->f_path.mnt); | 1990 | ret = mnt_want_write_file(file); |
1991 | if (ret) | 1991 | if (ret) |
1992 | return ret; | 1992 | return ret; |
1993 | 1993 | ||
@@ -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 | ||
@@ -2195,7 +2195,7 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd, | |||
2195 | if (btrfs_root_readonly(root)) | 2195 | if (btrfs_root_readonly(root)) |
2196 | return -EROFS; | 2196 | return -EROFS; |
2197 | 2197 | ||
2198 | ret = mnt_want_write(file->f_path.mnt); | 2198 | ret = mnt_want_write_file(file); |
2199 | if (ret) | 2199 | if (ret) |
2200 | return ret; | 2200 | return ret; |
2201 | 2201 | ||
@@ -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 | ||
@@ -2549,7 +2549,7 @@ static long btrfs_ioctl_trans_start(struct file *file) | |||
2549 | if (btrfs_root_readonly(root)) | 2549 | if (btrfs_root_readonly(root)) |
2550 | goto out; | 2550 | goto out; |
2551 | 2551 | ||
2552 | ret = mnt_want_write(file->f_path.mnt); | 2552 | ret = mnt_want_write_file(file); |
2553 | if (ret) | 2553 | if (ret) |
2554 | goto out; | 2554 | goto out; |
2555 | 2555 | ||
@@ -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 | ||