aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/xattr_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/xattr_user.c')
-rw-r--r--fs/ext4/xattr_user.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/fs/ext4/xattr_user.c b/fs/ext4/xattr_user.c
index 6ed932b3c043..d2dec3364062 100644
--- a/fs/ext4/xattr_user.c
+++ b/fs/ext4/xattr_user.c
@@ -12,8 +12,9 @@
12#include "xattr.h" 12#include "xattr.h"
13 13
14static size_t 14static size_t
15ext4_xattr_user_list(struct dentry *dentry, char *list, size_t list_size, 15ext4_xattr_user_list(const struct xattr_handler *handler,
16 const char *name, size_t name_len, int type) 16 struct dentry *dentry, char *list, size_t list_size,
17 const char *name, size_t name_len)
17{ 18{
18 const size_t prefix_len = XATTR_USER_PREFIX_LEN; 19 const size_t prefix_len = XATTR_USER_PREFIX_LEN;
19 const size_t total_len = prefix_len + name_len + 1; 20 const size_t total_len = prefix_len + name_len + 1;
@@ -30,8 +31,9 @@ ext4_xattr_user_list(struct dentry *dentry, char *list, size_t list_size,
30} 31}
31 32
32static int 33static int
33ext4_xattr_user_get(struct dentry *dentry, const char *name, 34ext4_xattr_user_get(const struct xattr_handler *handler,
34 void *buffer, size_t size, int type) 35 struct dentry *dentry, const char *name,
36 void *buffer, size_t size)
35{ 37{
36 if (strcmp(name, "") == 0) 38 if (strcmp(name, "") == 0)
37 return -EINVAL; 39 return -EINVAL;
@@ -42,8 +44,9 @@ ext4_xattr_user_get(struct dentry *dentry, const char *name,
42} 44}
43 45
44static int 46static int
45ext4_xattr_user_set(struct dentry *dentry, const char *name, 47ext4_xattr_user_set(const struct xattr_handler *handler,
46 const void *value, size_t size, int flags, int type) 48 struct dentry *dentry, const char *name,
49 const void *value, size_t size, int flags)
47{ 50{
48 if (strcmp(name, "") == 0) 51 if (strcmp(name, "") == 0)
49 return -EINVAL; 52 return -EINVAL;