diff options
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 6b70e0e2bd1e..7c07fe26b7cf 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -176,7 +176,7 @@ static int btrfs_ioctl_setflags(struct file *file, void __user *arg) | |||
176 | if (ret) | 176 | if (ret) |
177 | return ret; | 177 | return ret; |
178 | 178 | ||
179 | if (!is_owner_or_cap(inode)) | 179 | if (!inode_owner_or_capable(inode)) |
180 | return -EACCES; | 180 | return -EACCES; |
181 | 181 | ||
182 | mutex_lock(&inode->i_mutex); | 182 | mutex_lock(&inode->i_mutex); |
@@ -1158,7 +1158,7 @@ static noinline int btrfs_ioctl_subvol_setflags(struct file *file, | |||
1158 | if (flags & ~BTRFS_SUBVOL_RDONLY) | 1158 | if (flags & ~BTRFS_SUBVOL_RDONLY) |
1159 | return -EOPNOTSUPP; | 1159 | return -EOPNOTSUPP; |
1160 | 1160 | ||
1161 | if (!is_owner_or_cap(inode)) | 1161 | if (!inode_owner_or_capable(inode)) |
1162 | return -EACCES; | 1162 | return -EACCES; |
1163 | 1163 | ||
1164 | down_write(&root->fs_info->subvol_sem); | 1164 | down_write(&root->fs_info->subvol_sem); |