1 // SPDX-License-Identifier: GPL-2.0
3 #include <linux/errno.h>
5 #include <linux/pagemap.h>
6 #include <linux/xattr.h>
8 #include <linux/uaccess.h>
11 user_get(const struct xattr_handler *handler, struct dentry *unused,
12 struct inode *inode, const char *name, void *buffer, size_t size)
14 if (!reiserfs_xattrs_user(inode->i_sb))
16 return reiserfs_xattr_get(inode, xattr_full_name(handler, name),
21 user_set(const struct xattr_handler *handler, struct user_namespace *mnt_userns,
22 struct dentry *unused,
23 struct inode *inode, const char *name, const void *buffer,
24 size_t size, int flags)
26 if (!reiserfs_xattrs_user(inode->i_sb))
28 return reiserfs_xattr_set(inode,
29 xattr_full_name(handler, name),
33 static bool user_list(struct dentry *dentry)
35 return reiserfs_xattrs_user(dentry->d_sb);
38 const struct xattr_handler reiserfs_xattr_user_handler = {
39 .prefix = XATTR_USER_PREFIX,