diff options
Diffstat (limited to 'fs/f2fs/xattr.h')
-rw-r--r-- | fs/f2fs/xattr.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/fs/f2fs/xattr.h b/fs/f2fs/xattr.h index 49c9558305e3..3c0817bef25d 100644 --- a/fs/f2fs/xattr.h +++ b/fs/f2fs/xattr.h | |||
@@ -112,21 +112,19 @@ extern const struct xattr_handler f2fs_xattr_trusted_handler; | |||
112 | extern const struct xattr_handler f2fs_xattr_acl_access_handler; | 112 | extern const struct xattr_handler f2fs_xattr_acl_access_handler; |
113 | extern const struct xattr_handler f2fs_xattr_acl_default_handler; | 113 | extern const struct xattr_handler f2fs_xattr_acl_default_handler; |
114 | extern const struct xattr_handler f2fs_xattr_advise_handler; | 114 | extern const struct xattr_handler f2fs_xattr_advise_handler; |
115 | extern const struct xattr_handler f2fs_xattr_security_handler; | ||
115 | 116 | ||
116 | extern const struct xattr_handler *f2fs_xattr_handlers[]; | 117 | extern const struct xattr_handler *f2fs_xattr_handlers[]; |
117 | 118 | ||
118 | extern int f2fs_setxattr(struct inode *inode, int name_index, const char *name, | 119 | extern int f2fs_setxattr(struct inode *, int, const char *, |
119 | const void *value, size_t value_len); | 120 | const void *, size_t, struct page *); |
120 | extern int f2fs_getxattr(struct inode *inode, int name_index, const char *name, | 121 | extern int f2fs_getxattr(struct inode *, int, const char *, void *, size_t); |
121 | void *buffer, size_t buffer_size); | 122 | extern ssize_t f2fs_listxattr(struct dentry *, char *, size_t); |
122 | extern ssize_t f2fs_listxattr(struct dentry *dentry, char *buffer, | ||
123 | size_t buffer_size); | ||
124 | |||
125 | #else | 123 | #else |
126 | 124 | ||
127 | #define f2fs_xattr_handlers NULL | 125 | #define f2fs_xattr_handlers NULL |
128 | static inline int f2fs_setxattr(struct inode *inode, int name_index, | 126 | static inline int f2fs_setxattr(struct inode *inode, int name_index, |
129 | const char *name, const void *value, size_t value_len) | 127 | const char *name, const void *value, size_t value_len) |
130 | { | 128 | { |
131 | return -EOPNOTSUPP; | 129 | return -EOPNOTSUPP; |
132 | } | 130 | } |
@@ -142,4 +140,14 @@ static inline ssize_t f2fs_listxattr(struct dentry *dentry, char *buffer, | |||
142 | } | 140 | } |
143 | #endif | 141 | #endif |
144 | 142 | ||
143 | #ifdef CONFIG_F2FS_FS_SECURITY | ||
144 | extern int f2fs_init_security(struct inode *, struct inode *, | ||
145 | const struct qstr *, struct page *); | ||
146 | #else | ||
147 | static inline int f2fs_init_security(struct inode *inode, struct inode *dir, | ||
148 | const struct qstr *qstr, struct page *ipage) | ||
149 | { | ||
150 | return 0; | ||
151 | } | ||
152 | #endif | ||
145 | #endif /* __F2FS_XATTR_H__ */ | 153 | #endif /* __F2FS_XATTR_H__ */ |