Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349157
b: refs/heads/master
c: 5c39da5
h: refs/heads/master
i:
  349155: 6027dc3
v: v3
  • Loading branch information
Miao Xie authored and Josef Bacik committed Jan 14, 2013
1 parent ff71af6 commit baf724b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: d86e56cf7d3669dd292012ac82b986bd1573b6cc
refs/heads/master: 5c39da5b6ca23e68e7acea7f4c01470383475214
10 changes: 5 additions & 5 deletions trunk/fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2095,13 +2095,13 @@ static noinline int btrfs_ioctl_snap_destroy(struct file *file,
err = inode_permission(inode, MAY_WRITE | MAY_EXEC);
if (err)
goto out_dput;

/* check if subvolume may be deleted by a non-root user */
err = btrfs_may_delete(dir, dentry, 1);
if (err)
goto out_dput;
}

/* check if subvolume may be deleted by a user */
err = btrfs_may_delete(dir, dentry, 1);
if (err)
goto out_dput;

if (btrfs_ino(inode) != BTRFS_FIRST_FREE_OBJECTID) {
err = -EINVAL;
goto out_dput;
Expand Down

0 comments on commit baf724b

Please sign in to comment.