]> Git Repo - linux.git/blobdiff - fs/btrfs/acl.c
KVM: arm64: Assume write fault on S1PTW permission fault on instruction fetch
[linux.git] / fs / btrfs / acl.c
index 5810463dc6d210b274d85e8a8819f7579fcf4dbc..a0af1b952c4df1c996c6a92da149d818d3b3eac6 100644 (file)
@@ -93,7 +93,11 @@ static int __btrfs_set_acl(struct btrfs_trans_handle *trans,
                        goto out;
        }
 
-       ret = btrfs_setxattr(trans, inode, name, value, size, 0);
+       if (trans)
+               ret = btrfs_setxattr(trans, inode, name, value, size, 0);
+       else
+               ret = btrfs_setxattr_trans(inode, name, value, size, 0);
+
 out:
        kfree(value);
 
This page took 0.034438 seconds and 4 git commands to generate.