summaryrefslogtreecommitdiff
path: root/fs/bcachefs/acl.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-08-07 15:42:23 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-08-08 15:14:02 -0400
commitf39bae2e028b841732ca81d8131d27b48a6051ad (patch)
tree7232937f4fb12e03e5ac69ba7d44a8ac8159dbe9 /fs/bcachefs/acl.h
parent73dc1656f41a42849e43b945fe44d4e3d55eb6c3 (diff)
bcachefs: Switch to .get_inode_acl()
.set_acl() requires a dentry, and if one isn't passed it marks the VFS inode as not having an ACL. This has been causing inodes with ACLs to have them "disappear" on bcachefs filesystem, depending on which path those inodes get pulled into the cache from. Switching to .get_inode_acl(), like other local filesystems, fixes this. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/acl.h')
-rw-r--r--fs/bcachefs/acl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/acl.h b/fs/bcachefs/acl.h
index 27e7eec0f278..fe730a6bf0c1 100644
--- a/fs/bcachefs/acl.h
+++ b/fs/bcachefs/acl.h
@@ -28,7 +28,7 @@ void bch2_acl_to_text(struct printbuf *, const void *, size_t);
#ifdef CONFIG_BCACHEFS_POSIX_ACL
-struct posix_acl *bch2_get_acl(struct mnt_idmap *, struct dentry *, int);
+struct posix_acl *bch2_get_acl(struct inode *, int, bool);
int bch2_set_acl_trans(struct btree_trans *, subvol_inum,
struct bch_inode_unpacked *,