aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2008-06-11 15:44:18 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-07-15 18:10:52 -0400
commit4d80f2ecd506d9732ad94a6da104580bb47680d6 (patch)
tree26cb6bb08a53eae18dcf046b1041f20b5c9a9f8d /fs/nfs
parentfa6dc9dc59c3a76fd209a97c8cf37395980fb903 (diff)
downloadkernel_samsung_aries-4d80f2ecd506d9732ad94a6da104580bb47680d6.zip
kernel_samsung_aries-4d80f2ecd506d9732ad94a6da104580bb47680d6.tar.gz
kernel_samsung_aries-4d80f2ecd506d9732ad94a6da104580bb47680d6.tar.bz2
NFS: Remove the BKL from the permission checking code
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/dir.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index d6ec1c8..73e0f97 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -1982,8 +1982,6 @@ int nfs_permission(struct inode *inode, int mask, struct nameidata *nd)
}
force_lookup:
- lock_kernel();
-
if (!NFS_PROTO(inode)->access)
goto out_notsup;
@@ -1993,7 +1991,6 @@ force_lookup:
put_rpccred(cred);
} else
res = PTR_ERR(cred);
- unlock_kernel();
out:
dfprintk(VFS, "NFS: permission(%s/%ld), mask=0x%x, res=%d\n",
inode->i_sb->s_id, inode->i_ino, mask, res);
@@ -2002,7 +1999,6 @@ out_notsup:
res = nfs_revalidate_inode(NFS_SERVER(inode), inode);
if (res == 0)
res = generic_permission(inode, mask, NULL);
- unlock_kernel();
goto out;
}