Lines Matching refs:xattr_name
393 static int name_len(const char *xattr_name, int xattr_name_len) in name_len() argument
397 if (!is_known_namespace(xattr_name)) in name_len()
403 static int copy_name(char *buffer, const char *xattr_name, int name_len) in copy_name() argument
408 if (!is_known_namespace(xattr_name)) { in copy_name()
414 strncpy(buffer + offset, xattr_name, name_len); in copy_name()
425 char *xattr_name; in hfsplus_setxattr() local
428 xattr_name = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_ATTR_MAX_STRLEN + 1, in hfsplus_setxattr()
430 if (!xattr_name) in hfsplus_setxattr()
432 strcpy(xattr_name, prefix); in hfsplus_setxattr()
433 strcpy(xattr_name + prefixlen, name); in hfsplus_setxattr()
434 res = __hfsplus_setxattr(inode, xattr_name, value, size, flags); in hfsplus_setxattr()
435 kfree(xattr_name); in hfsplus_setxattr()
580 char *xattr_name; in hfsplus_getxattr() local
582 xattr_name = kmalloc(NLS_MAX_CHARSET_SIZE * HFSPLUS_ATTR_MAX_STRLEN + 1, in hfsplus_getxattr()
584 if (!xattr_name) in hfsplus_getxattr()
587 strcpy(xattr_name, prefix); in hfsplus_getxattr()
588 strcpy(xattr_name + prefixlen, name); in hfsplus_getxattr()
590 res = __hfsplus_getxattr(inode, xattr_name, value, size); in hfsplus_getxattr()
591 kfree(xattr_name); in hfsplus_getxattr()
596 static inline int can_list(const char *xattr_name) in can_list() argument
598 if (!xattr_name) in can_list()
601 return strncmp(xattr_name, XATTR_TRUSTED_PREFIX, in can_list()