summaryrefslogtreecommitdiffstats
path: root/fs/nfs/idmap.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-03-20 13:44:10 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-03-20 13:44:10 -0500
commitbd6475454c774bd9dbe6078d94bbf72b1d3b65f4 (patch)
tree641c38589e2aa02a22db229be7d77c9c342a81cb /fs/nfs/idmap.c
parenta162a6b804b48c605d1fd35e1861a5d32d00ad3f (diff)
downloadop-kernel-dev-bd6475454c774bd9dbe6078d94bbf72b1d3b65f4.zip
op-kernel-dev-bd6475454c774bd9dbe6078d94bbf72b1d3b65f4.tar.gz
NFS: kzalloc conversion in fs/nfs
this converts fs/nfs to kzalloc() usage. compile tested with make allyesconfig Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/idmap.c')
-rw-r--r--fs/nfs/idmap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c
index 32c95a0..b89d27f 100644
--- a/fs/nfs/idmap.c
+++ b/fs/nfs/idmap.c
@@ -101,11 +101,9 @@ nfs_idmap_new(struct nfs4_client *clp)
if (clp->cl_idmap != NULL)
return;
- if ((idmap = kmalloc(sizeof(*idmap), GFP_KERNEL)) == NULL)
+ if ((idmap = kzalloc(sizeof(*idmap), GFP_KERNEL)) == NULL)
return;
- memset(idmap, 0, sizeof(*idmap));
-
snprintf(idmap->idmap_path, sizeof(idmap->idmap_path),
"%s/idmap", clp->cl_rpcclient->cl_pathname);
OpenPOWER on IntegriCloud