2 #include <linux/errno.h>
4 #include <linux/pagemap.h>
5 #include <linux/xattr.h>
7 #include <linux/uaccess.h>
10 user_get(const struct xattr_handler
*handler
, struct dentry
*unused
,
11 struct inode
*inode
, const char *name
, void *buffer
, size_t size
)
13 if (!reiserfs_xattrs_user(inode
->i_sb
))
15 return reiserfs_xattr_get(inode
, xattr_full_name(handler
, name
),
20 user_set(const struct xattr_handler
*handler
, struct dentry
*dentry
,
21 const char *name
, const void *buffer
, size_t size
, int flags
)
23 if (!reiserfs_xattrs_user(dentry
->d_sb
))
25 return reiserfs_xattr_set(d_inode(dentry
),
26 xattr_full_name(handler
, name
),
30 static bool user_list(struct dentry
*dentry
)
32 return reiserfs_xattrs_user(dentry
->d_sb
);
35 const struct xattr_handler reiserfs_xattr_user_handler
= {
36 .prefix
= XATTR_USER_PREFIX
,