X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fnfs%2Fproc.c;h=7a9013dd5d0aa6ae86df4986e8e58eb75ebf6a00;hb=cae823c4c089d2c7c2a90f39f20376ccd85f9893;hp=630e50647bbbf02c90611f4ba7d63da613ebaccc;hpb=a319a2773a13bab56a0d0b3744ba8703324313b5;p=mv-sheeva.git diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c index 630e50647bb..7a9013dd5d0 100644 --- a/fs/nfs/proc.c +++ b/fs/nfs/proc.c @@ -352,7 +352,7 @@ nfs_proc_unlink_setup(struct rpc_message *msg, struct dentry *dir, struct qstr * { struct nfs_diropargs *arg; - arg = (struct nfs_diropargs *)kmalloc(sizeof(*arg), GFP_KERNEL); + arg = kmalloc(sizeof(*arg), GFP_KERNEL); if (!arg) return -ENOMEM; arg->fh = NFS_FH(dir->d_inode); @@ -545,13 +545,10 @@ nfs_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, }; int status; - lock_kernel(); - dprintk("NFS call readdir %d\n", (unsigned int)cookie); status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); dprintk("NFS reply readdir: %d\n", status); - unlock_kernel(); return status; }