aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/posix_acl.c7
-rw-r--r--include/linux/posix_acl_xattr.h10
2 files changed, 4 insertions, 13 deletions
diff --git a/fs/posix_acl.c b/fs/posix_acl.c
index acb7f7d7f11d..989bbf280bfe 100644
--- a/fs/posix_acl.c
+++ b/fs/posix_acl.c
@@ -884,9 +884,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;
diff --git a/include/linux/posix_acl_xattr.h b/include/linux/posix_acl_xattr.h
index 8daac3c5b583..54cd7a14330d 100644
--- a/include/linux/posix_acl_xattr.h
+++ b/include/linux/posix_acl_xattr.h
@@ -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,