/* Find the handler for the prefix and dispatch its set() operation.  */
int generic_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)
/* Find the handler for the prefix and dispatch its set() operation.  */
int generic_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)
{
	struct xattr_handler *handler;
	if (size == 0)
		value = "";
	handler = xattr_resolve_name(dentry->d_sb->s_xattr, &name);
	if (!handler)
		return -EOPNOTSUPP;
	return handler->set(dentry, name, value, size, 0, handler->flags);
}