Merge remote-tracking branch 'asoc/fix/tpa6130a2' into asoc-linus
[linux/fpc-iii.git] / fs / hfsplus / xattr_user.c
blobfae6c0ea00305f0e21a84f2489522187f279d550
1 /*
2 * linux/fs/hfsplus/xattr_user.c
4 * Vyacheslav Dubeyko <slava@dubeyko.com>
6 * Handler for user extended attributes.
7 */
9 #include <linux/nls.h>
11 #include "hfsplus_fs.h"
12 #include "xattr.h"
14 static int hfsplus_user_getxattr(const struct xattr_handler *handler,
15 struct dentry *unused, struct inode *inode,
16 const char *name, void *buffer, size_t size)
19 return hfsplus_getxattr(inode, name, buffer, size,
20 XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN);
23 static int hfsplus_user_setxattr(const struct xattr_handler *handler,
24 struct dentry *unused, struct inode *inode,
25 const char *name, const void *buffer,
26 size_t size, int flags)
28 return hfsplus_setxattr(inode, name, buffer, size, flags,
29 XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN);
32 const struct xattr_handler hfsplus_xattr_user_handler = {
33 .prefix = XATTR_USER_PREFIX,
34 .get = hfsplus_user_getxattr,
35 .set = hfsplus_user_setxattr,