Skip to content

Commit 20eb0cf

Browse files
committed
Merge branch 'fs.acl.rework' into for-next
2 parents e4236f9 + a351b1f commit 20eb0cf

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

fs/posix_acl.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,9 +884,10 @@ EXPORT_SYMBOL (posix_acl_to_xattr);
884884
* Return: On success, the size of the stored uapi posix acls, on error a
885885
* negative errno.
886886
*/
887-
ssize_t vfs_posix_acl_to_xattr(struct user_namespace *mnt_userns,
888-
struct inode *inode, const struct posix_acl *acl,
889-
void *buffer, size_t size)
887+
static ssize_t vfs_posix_acl_to_xattr(struct user_namespace *mnt_userns,
888+
struct inode *inode,
889+
const struct posix_acl *acl, void *buffer,
890+
size_t size)
890891

891892
{
892893
struct posix_acl_xattr_header *ext_acl = buffer;

include/linux/posix_acl_xattr.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,13 @@ posix_acl_xattr_count(size_t size)
3535
#ifdef CONFIG_FS_POSIX_ACL
3636
struct posix_acl *posix_acl_from_xattr(struct user_namespace *user_ns,
3737
const void *value, size_t size);
38-
ssize_t vfs_posix_acl_to_xattr(struct user_namespace *mnt_userns,
39-
struct inode *inode, const struct posix_acl *acl,
40-
void *buffer, size_t size);
4138
#else
4239
static inline struct posix_acl *
4340
posix_acl_from_xattr(struct user_namespace *user_ns, const void *value,
4441
size_t size)
4542
{
4643
return ERR_PTR(-EOPNOTSUPP);
4744
}
48-
static inline ssize_t vfs_posix_acl_to_xattr(struct user_namespace *mnt_userns,
49-
struct inode *inode,
50-
const struct posix_acl *acl,
51-
void *buffer, size_t size)
52-
{
53-
return 0;
54-
}
5545
#endif
5646

5747
int posix_acl_to_xattr(struct user_namespace *user_ns,

0 commit comments

Comments
 (0)