diff options
Diffstat (limited to 'include/linux/posix_acl_xattr.h')
-rw-r--r-- | include/linux/posix_acl_xattr.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/posix_acl_xattr.h b/include/linux/posix_acl_xattr.h index 6e53c34035cd..8bd5fcf06916 100644 --- a/include/linux/posix_acl_xattr.h +++ b/include/linux/posix_acl_xattr.h | |||
@@ -52,6 +52,18 @@ posix_acl_xattr_count(size_t size) | |||
52 | return size / sizeof(posix_acl_xattr_entry); | 52 | return size / sizeof(posix_acl_xattr_entry); |
53 | } | 53 | } |
54 | 54 | ||
55 | #ifdef CONFIG_FS_POSIX_ACL | ||
56 | void posix_acl_fix_xattr_from_user(void *value, size_t size); | ||
57 | void posix_acl_fix_xattr_to_user(void *value, size_t size); | ||
58 | #else | ||
59 | static inline void posix_acl_fix_xattr_from_user(void *value, size_t size) | ||
60 | { | ||
61 | } | ||
62 | static inline void posix_acl_fix_xattr_to_user(void *value, size_t size) | ||
63 | { | ||
64 | } | ||
65 | #endif | ||
66 | |||
55 | struct posix_acl *posix_acl_from_xattr(const void *value, size_t size); | 67 | struct posix_acl *posix_acl_from_xattr(const void *value, size_t size); |
56 | int posix_acl_to_xattr(const struct posix_acl *acl, void *buffer, size_t size); | 68 | int posix_acl_to_xattr(const struct posix_acl *acl, void *buffer, size_t size); |
57 | 69 | ||