]> www.infradead.org Git - users/willy/linux.git/commit
bcachefs: Switch to .get_inode_acl()
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 7 Aug 2024 19:42:23 +0000 (15:42 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 8 Aug 2024 19:14:02 +0000 (15:14 -0400)
commitf39bae2e028b841732ca81d8131d27b48a6051ad
tree7232937f4fb12e03e5ac69ba7d44a8ac8159dbe9
parent73dc1656f41a42849e43b945fe44d4e3d55eb6c3
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>
fs/bcachefs/acl.c
fs/bcachefs/acl.h
fs/bcachefs/fs.c