/* nfs_copy_dname - copy dentry name to data structure @dentry: pointer to dentry @data:  */
static int nfs_copy_dname(struct dentry *dentry, struct nfs_unlinkdata *data)
/* nfs_copy_dname - copy dentry name to data structure @dentry: pointer to dentry @data:  */
static int nfs_copy_dname(struct dentry *dentry, struct nfs_unlinkdata *data)
{
	char		*str;
	int		len = dentry->d_name.len;
	str = kmemdup(dentry->d_name.name, NAME_ALLOC_LEN(len), GFP_KERNEL);
	if (!str)
		return -ENOMEM;
	data->args.name.len = len;
	data->args.name.name = str;
	return 0;
}