Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318846
b: refs/heads/master
c: 768e9df
h: refs/heads/master
v: v3
  • Loading branch information
Liu Bo authored and Chris Mason committed Jul 23, 2012
1 parent d2399d7 commit 889675c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a874a63e1389c1daabd5abe4e4faaf9d63daf474
refs/heads/master: 768e9dfe820abdcfb6683e05c60b8634f1a4ffce
7 changes: 0 additions & 7 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1381,14 +1381,10 @@ static noinline int btrfs_ioctl_snap_create_transid(struct file *file,
u64 *transid,
bool readonly)
{
struct btrfs_root *root = BTRFS_I(fdentry(file)->d_inode)->root;
struct file *src_file;
int namelen;
int ret = 0;

if (root->fs_info->sb->s_flags & MS_RDONLY)
return -EROFS;

ret = mnt_want_write_file(file);
if (ret)
goto out;
Expand Down Expand Up @@ -3269,9 +3265,6 @@ static long btrfs_ioctl_balance(struct file *file, void __user *arg)
if (!capable(CAP_SYS_ADMIN))
return -EPERM;

if (fs_info->sb->s_flags & MS_RDONLY)
return -EROFS;

ret = mnt_want_write(file->f_path.mnt);
if (ret)
return ret;
Expand Down

0 comments on commit 889675c

Please sign in to comment.