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
*unused
,
21 struct inode
*inode
, const char *name
, const void *buffer
,
22 size_t size
, int flags
)
24 if (!reiserfs_xattrs_user(inode
->i_sb
))
26 return reiserfs_xattr_set(inode
,
27 xattr_full_name(handler
, name
),
31 static bool user_list(struct dentry
*dentry
)
33 return reiserfs_xattrs_user(dentry
->d_sb
);
36 const struct xattr_handler reiserfs_xattr_user_handler
= {
37 .prefix
= XATTR_USER_PREFIX
,