]> Pileus Git - ~andy/linux/blobdiff - fs/btrfs/acl.c
Btrfs: use right clone root offset for compressed extents
[~andy/linux] / fs / btrfs / acl.c
index 0890c83643e944f69e43a22f4151e381e7503f04..460f36bae67259ee64d51670b0ca55f9ec81bcba 100644 (file)
@@ -225,13 +225,8 @@ int btrfs_init_acl(struct btrfs_trans_handle *trans,
                ret = posix_acl_create(&acl, GFP_NOFS, &inode->i_mode);
                if (ret < 0)
                        return ret;
-
-               if (ret > 0) {
-                       /* we need an acl */
+               if (ret > 0) /* we need an acl */
                        ret = btrfs_set_acl(trans, inode, acl, ACL_TYPE_ACCESS);
-               } else if (ret < 0) {
-                       cache_no_acl(inode);
-               }
        } else {
                cache_no_acl(inode);
        }