Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361007
b: refs/heads/master
c: 9b53157
h: refs/heads/master
i:
  361005: 945d75f
  361003: 5d391d2
  360999: ad5c319
  360991: 5ed3065
v: v3
  • Loading branch information
Stefan Behrens authored and Josef Bacik committed Mar 4, 2013
1 parent 3f33872 commit a7d0154
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 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: 66b6135b7cf741f6f44ba938b27583ea3b83bd12
refs/heads/master: 9b53157aac7366cea413ee29b629f83225829e87
8 changes: 0 additions & 8 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2245,13 +2245,6 @@ static int btrfs_ioctl_defrag(struct file *file, void __user *argp)
if (ret)
return ret;

if (atomic_xchg(&root->fs_info->mutually_exclusive_operation_running,
1)) {
pr_info("btrfs: dev add/delete/balance/replace/resize operation in progress\n");
mnt_drop_write_file(file);
return -EINVAL;
}

if (btrfs_root_readonly(root)) {
ret = -EROFS;
goto out;
Expand Down Expand Up @@ -2306,7 +2299,6 @@ static int btrfs_ioctl_defrag(struct file *file, void __user *argp)
ret = -EINVAL;
}
out:
atomic_set(&root->fs_info->mutually_exclusive_operation_running, 0);
mnt_drop_write_file(file);
return ret;
}
Expand Down

0 comments on commit a7d0154

Please sign in to comment.