]> err.no Git - linux-2.6/blobdiff - fs/nfs/super.c
Merge branch 'linus' into x86/cleanups
[linux-2.6] / fs / nfs / super.c
index 47cf83e917bea4f635bddd77fa44faef136590c3..1b94e3650f5cb343d241d372d0d03d85ed42528d 100644 (file)
@@ -374,8 +374,6 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
        };
        int error;
 
-       lock_kernel();
-
        error = server->nfs_client->rpc_ops->statfs(server, fh, &res);
        if (error < 0)
                goto out_err;
@@ -407,12 +405,10 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
 
        buf->f_namelen = server->namelen;
 
-       unlock_kernel();
        return 0;
 
  out_err:
        dprintk("%s: statfs error = %d\n", __func__, -error);
-       unlock_kernel();
        return error;
 }