diff options
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/ceph/acl.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/ceph/acl.c b/fs/ceph/acl.c index 4c2d452c4bfc..accc9f28bc10 100644 --- a/fs/ceph/acl.c +++ b/fs/ceph/acl.c | |||
| @@ -160,11 +160,7 @@ int ceph_set_acl(struct inode *inode, struct posix_acl *acl, int type) | |||
| 160 | goto out_dput; | 160 | goto out_dput; |
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | if (value) | 163 | ret = __ceph_setxattr(dentry, name, value, size, 0); |
| 164 | ret = __ceph_setxattr(dentry, name, value, size, 0); | ||
| 165 | else | ||
| 166 | ret = __ceph_removexattr(dentry, name); | ||
| 167 | |||
| 168 | if (ret) { | 164 | if (ret) { |
| 169 | if (new_mode != old_mode) { | 165 | if (new_mode != old_mode) { |
| 170 | newattrs.ia_mode = old_mode; | 166 | newattrs.ia_mode = old_mode; |
