acl: make vfs_posix_acl_to_xattr() static

JIRA: https://issues.redhat.com/browse/RHEL-33888
Status: Linus

commit a351b1f444187312bb42479cb26e82f26fc481d2
Author: Christian Brauner <brauner@kernel.org>
Date:   Fri Oct 28 10:00:26 2022 +0200

    acl: make vfs_posix_acl_to_xattr() static

    After reworking posix acls this helper isn't used anywhere outside the core
    posix acl paths. Make it static.

    Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>

Signed-off-by: Ian Kent <ikent@redhat.com>
This commit is contained in:
Ian Kent 2024-05-20 17:40:43 +08:00 committed by Ian Kent
parent de3095aa57
commit dd5294d1a4
2 changed files with 4 additions and 13 deletions

View File

@ -886,9 +886,10 @@ EXPORT_SYMBOL (posix_acl_to_xattr);
* Return: On success, the size of the stored uapi posix acls, on error a
* negative errno.
*/
ssize_t vfs_posix_acl_to_xattr(struct user_namespace *mnt_userns,
struct inode *inode, const struct posix_acl *acl,
void *buffer, size_t size)
static ssize_t vfs_posix_acl_to_xattr(struct user_namespace *mnt_userns,
struct inode *inode,
const struct posix_acl *acl, void *buffer,
size_t size)
{
struct posix_acl_xattr_header *ext_acl = buffer;

View File

@ -35,9 +35,6 @@ posix_acl_xattr_count(size_t size)
#ifdef CONFIG_FS_POSIX_ACL
struct posix_acl *posix_acl_from_xattr(struct user_namespace *user_ns,
const void *value, size_t size);
ssize_t vfs_posix_acl_to_xattr(struct user_namespace *mnt_userns,
struct inode *inode, const struct posix_acl *acl,
void *buffer, size_t size);
#else
static inline struct posix_acl *
posix_acl_from_xattr(struct user_namespace *user_ns, const void *value,
@ -45,13 +42,6 @@ posix_acl_from_xattr(struct user_namespace *user_ns, const void *value,
{
return ERR_PTR(-EOPNOTSUPP);
}
static inline ssize_t vfs_posix_acl_to_xattr(struct user_namespace *mnt_userns,
struct inode *inode,
const struct posix_acl *acl,
void *buffer, size_t size)
{
return 0;
}
#endif
int posix_acl_to_xattr(struct user_namespace *user_ns,