Skip to content

Commit d3f30f1

Browse files
tangyoulingKent Overstreet
authored andcommitted
bcachefs: drop unused posix acl handlers
Remove struct nop_posix_acl_{access,default} for bcachefs filesystem that don't depend on the xattr handler in their inode->i_op->listxattr() method in any way. There's nothing more to do than to simply remove the handler. It's been effectively unused ever since we introduced the new posix acl api. See [1] for details. Link [1]: https://patchwork.kernel.org/project/linux-fsdevel/cover/20230125-fs-acl-remove-generic-xattr-handlers-v3-0-f760cc58967d@kernel.org/ Signed-off-by: Youling Tang <[email protected]> Signed-off-by: Kent Overstreet <[email protected]>
1 parent 5935bf3 commit d3f30f1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/bcachefs/xattr.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -601,10 +601,6 @@ static const struct xattr_handler bch_xattr_bcachefs_effective_handler = {
601601

602602
const struct xattr_handler *bch2_xattr_handlers[] = {
603603
&bch_xattr_user_handler,
604-
#ifdef CONFIG_BCACHEFS_POSIX_ACL
605-
&nop_posix_acl_access,
606-
&nop_posix_acl_default,
607-
#endif
608604
&bch_xattr_trusted_handler,
609605
&bch_xattr_security_handler,
610606
#ifndef NO_BCACHEFS_FS

0 commit comments

Comments
 (0)