Skip to content

Commit

Permalink
nfs: stop mangling ->mnt_devname on NFS
Browse files Browse the repository at this point in the history
now we can do that - nobody cares about its value anymore.

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Mar 16, 2011
1 parent c7f404b commit fd462fb
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2799,26 +2799,6 @@ static struct vfsmount *nfs_do_root_mount(struct file_system_type *fs_type,
return root_mnt;
}

static void nfs_fix_devname(struct dentry *dentry, struct vfsmount *mnt)
{
char *page = (char *) __get_free_page(GFP_KERNEL);
char *devname, *tmp;
char *dummy;

if (page == NULL)
return;
devname = nfs_path(&dummy, dentry, page, PAGE_SIZE);
if (IS_ERR(devname))
goto out_freepage;
tmp = kstrdup(devname, GFP_KERNEL);
if (tmp == NULL)
goto out_freepage;
kfree(mnt->mnt_devname);
mnt->mnt_devname = tmp;
out_freepage:
free_page((unsigned long)page);
}

struct nfs_referral_count {
struct list_head list;
const struct task_struct *task;
Expand Down Expand Up @@ -2920,9 +2900,6 @@ static int nfs_follow_remote_path(struct vfsmount *root_mnt,
mnt_target->mnt_sb = s;
mnt_target->mnt_root = dget(nd->path.dentry);

/* Correct the device pathname */
nfs_fix_devname(nd->path.dentry, mnt_target);

path_put(&nd->path);
kfree(nd);
down_write(&s->s_umount);
Expand Down

0 comments on commit fd462fb

Please sign in to comment.