aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-03-16 05:27:27 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-03-16 16:27:04 -0400
commit0d5839ad05acd0fe2a84a39f33ac5efdf634a5a5 (patch)
treea84d6d3a1169a8ff4598cf1337c5e5e75863f6e2 /fs/nfs/super.c
parent60ed8cf78f886753e454b671841c0a3a0e55e915 (diff)
nfs: propagate devname to nfs{,4}_get_root()
step 1 of ->mnt_devname fixes: make sure we have the value of devname available in ..._get_root(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r--fs/nfs/super.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index b68c8607770f..1d81032b226a 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -2336,7 +2336,7 @@ static int nfs_get_sb(struct file_system_type *fs_type,
2336 s, data ? data->fscache_uniq : NULL, NULL); 2336 s, data ? data->fscache_uniq : NULL, NULL);
2337 } 2337 }
2338 2338
2339 mntroot = nfs_get_root(s, mntfh); 2339 mntroot = nfs_get_root(s, mntfh, dev_name);
2340 if (IS_ERR(mntroot)) { 2340 if (IS_ERR(mntroot)) {
2341 error = PTR_ERR(mntroot); 2341 error = PTR_ERR(mntroot);
2342 goto error_splat_super; 2342 goto error_splat_super;
@@ -2450,7 +2450,7 @@ nfs_xdev_mount(struct file_system_type *fs_type, int flags,
2450 nfs_fscache_get_super_cookie(s, NULL, data); 2450 nfs_fscache_get_super_cookie(s, NULL, data);
2451 } 2451 }
2452 2452
2453 mntroot = nfs_get_root(s, data->fh); 2453 mntroot = nfs_get_root(s, data->fh, dev_name);
2454 if (IS_ERR(mntroot)) { 2454 if (IS_ERR(mntroot)) {
2455 error = PTR_ERR(mntroot); 2455 error = PTR_ERR(mntroot);
2456 goto error_splat_super; 2456 goto error_splat_super;
@@ -2718,7 +2718,7 @@ nfs4_remote_mount(struct file_system_type *fs_type, int flags,
2718 s, data ? data->fscache_uniq : NULL, NULL); 2718 s, data ? data->fscache_uniq : NULL, NULL);
2719 } 2719 }
2720 2720
2721 mntroot = nfs4_get_root(s, mntfh); 2721 mntroot = nfs4_get_root(s, mntfh, dev_name);
2722 if (IS_ERR(mntroot)) { 2722 if (IS_ERR(mntroot)) {
2723 error = PTR_ERR(mntroot); 2723 error = PTR_ERR(mntroot);
2724 goto error_splat_super; 2724 goto error_splat_super;
@@ -3033,7 +3033,7 @@ nfs4_xdev_mount(struct file_system_type *fs_type, int flags,
3033 nfs_fscache_get_super_cookie(s, NULL, data); 3033 nfs_fscache_get_super_cookie(s, NULL, data);
3034 } 3034 }
3035 3035
3036 mntroot = nfs4_get_root(s, data->fh); 3036 mntroot = nfs4_get_root(s, data->fh, dev_name);
3037 if (IS_ERR(mntroot)) { 3037 if (IS_ERR(mntroot)) {
3038 error = PTR_ERR(mntroot); 3038 error = PTR_ERR(mntroot);
3039 goto error_splat_super; 3039 goto error_splat_super;
@@ -3120,7 +3120,7 @@ nfs4_remote_referral_mount(struct file_system_type *fs_type, int flags,
3120 nfs_fscache_get_super_cookie(s, NULL, data); 3120 nfs_fscache_get_super_cookie(s, NULL, data);
3121 } 3121 }
3122 3122
3123 mntroot = nfs4_get_root(s, mntfh); 3123 mntroot = nfs4_get_root(s, mntfh, dev_name);
3124 if (IS_ERR(mntroot)) { 3124 if (IS_ERR(mntroot)) {
3125 error = PTR_ERR(mntroot); 3125 error = PTR_ERR(mntroot);
3126 goto error_splat_super; 3126 goto error_splat_super;