aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r--fs/nfs/super.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 47cf83e917be..1b94e3650f5c 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -374,8 +374,6 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
374 }; 374 };
375 int error; 375 int error;
376 376
377 lock_kernel();
378
379 error = server->nfs_client->rpc_ops->statfs(server, fh, &res); 377 error = server->nfs_client->rpc_ops->statfs(server, fh, &res);
380 if (error < 0) 378 if (error < 0)
381 goto out_err; 379 goto out_err;
@@ -407,12 +405,10 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
407 405
408 buf->f_namelen = server->namelen; 406 buf->f_namelen = server->namelen;
409 407
410 unlock_kernel();
411 return 0; 408 return 0;
412 409
413 out_err: 410 out_err:
414 dprintk("%s: statfs error = %d\n", __func__, -error); 411 dprintk("%s: statfs error = %d\n", __func__, -error);
415 unlock_kernel();
416 return error; 412 return error;
417} 413}
418 414