mm: fix exec activate_mm vs TLB shootdown and lazy tlb switching race
[linux/fpc-iii.git] / fs / hfsplus / xattr_user.c
blob74d19faf255e1174c65c1412b12e1f9dc53477c4
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * linux/fs/hfsplus/xattr_user.c
5 * Vyacheslav Dubeyko <slava@dubeyko.com>
7 * Handler for user extended attributes.
8 */
10 #include <linux/nls.h>
12 #include "hfsplus_fs.h"
13 #include "xattr.h"
15 static int hfsplus_user_getxattr(const struct xattr_handler *handler,
16 struct dentry *unused, struct inode *inode,
17 const char *name, void *buffer, size_t size)
20 return hfsplus_getxattr(inode, name, buffer, size,
21 XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN);
24 static int hfsplus_user_setxattr(const struct xattr_handler *handler,
25 struct dentry *unused, struct inode *inode,
26 const char *name, const void *buffer,
27 size_t size, int flags)
29 return hfsplus_setxattr(inode, name, buffer, size, flags,
30 XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN);
33 const struct xattr_handler hfsplus_xattr_user_handler = {
34 .prefix = XATTR_USER_PREFIX,
35 .get = hfsplus_user_getxattr,
36 .set = hfsplus_user_setxattr,