diff options
Diffstat (limited to 'libbcachefs/acl.c')
-rw-r--r-- | libbcachefs/acl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libbcachefs/acl.c b/libbcachefs/acl.c index f92b52e4..d0c6878b 100644 --- a/libbcachefs/acl.c +++ b/libbcachefs/acl.c @@ -212,7 +212,7 @@ bch2_acl_to_xattr(struct btree_trans *trans, return xattr; } -struct posix_acl *bch2_get_acl(struct inode *vinode, int type) +struct posix_acl *bch2_get_acl(struct inode *vinode, int type, bool rcu) { struct bch_inode_info *inode = to_bch_ei(vinode); struct bch_fs *c = inode->v.i_sb->s_fs_info; @@ -224,6 +224,9 @@ struct posix_acl *bch2_get_acl(struct inode *vinode, int type) struct bkey_s_c k; int ret; + if (rcu) + return ERR_PTR(-ECHILD); + bch2_trans_init(&trans, c, 0, 0); retry: bch2_trans_begin(&trans); |