@@ -958,26 +958,6 @@ set_posix_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
}
EXPORT_SYMBOL(set_posix_acl);
-static bool
-posix_acl_xattr_list(struct dentry *dentry)
-{
- return IS_POSIXACL(d_backing_inode(dentry));
-}
-
-const struct xattr_handler posix_acl_access_xattr_handler = {
- .name = XATTR_NAME_POSIX_ACL_ACCESS,
- .flags = ACL_TYPE_ACCESS,
- .list = posix_acl_xattr_list,
-};
-EXPORT_SYMBOL_GPL(posix_acl_access_xattr_handler);
-
-const struct xattr_handler posix_acl_default_xattr_handler = {
- .name = XATTR_NAME_POSIX_ACL_DEFAULT,
- .flags = ACL_TYPE_DEFAULT,
- .list = posix_acl_xattr_list,
-};
-EXPORT_SYMBOL_GPL(posix_acl_default_xattr_handler);
-
int simple_set_acl(struct user_namespace *mnt_userns, struct dentry *dentry,
struct posix_acl *acl, int type)
{
@@ -73,7 +73,4 @@ static inline bool posix_acl_dentry_list(struct dentry *dentry)
return IS_POSIXACL(d_backing_inode(dentry));
}
-extern const struct xattr_handler posix_acl_access_xattr_handler;
-extern const struct xattr_handler posix_acl_default_xattr_handler;
-
#endif /* _POSIX_ACL_XATTR_H */
Now that everything in the VFS and all filesystems just rely on the dedicated inode methods to interact with posix acls we can remove the dummy generic posix acl xattr handlers. This way no filesystem an be falsely under the impression that they are needed to implement posix acl support. Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org> --- fs/posix_acl.c | 20 -------------------- include/linux/posix_acl_xattr.h | 3 --- 2 files changed, 23 deletions(-)