summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-03-16 07:05:45 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-16 16:48:06 -0400
commitfd462fb51db46c84bea0fc377c11b9a7e16bc1a0 (patch)
tree6b7c8ae99ebc26a663b765034985256b944eeef4 /fs
parentc7f404b40a3665d9f4e9a927cc5c1ee0479ed8f9 (diff)
nfs: stop mangling ->mnt_devname on NFS
now we can do that - nobody cares about its value anymore. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/super.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 79bc61fe2868..3f967cee4072 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -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;
@@ -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);