summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-11-19 23:03:22 (GMT)
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-11-21 14:29:52 (GMT)
commit2d473d378eb571ad77f9563653639aa35e22d39c (patch)
tree546022fe5c48767184ab4714413193f935bdc8fd /fs
parent43095d397219aa1898db23937b03c1215ef16a37 (diff)
downloadlinux-fsl-qoriq-2d473d378eb571ad77f9563653639aa35e22d39c.tar.xz
NFSv4.1: nfs4_alloc_slots doesn't need zeroing
All that memory is going to be initialised to non-zero by nfs4_add_and_init_slots anyway. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 1ac339b..0402ebb 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -5658,7 +5658,7 @@ int nfs4_proc_get_lease_time(struct nfs_client *clp, struct nfs_fsinfo *fsinfo)
static struct nfs4_slot *nfs4_alloc_slots(u32 max_slots, gfp_t gfp_flags)
{
- return kcalloc(max_slots, sizeof(struct nfs4_slot), gfp_flags);
+ return kmalloc_array(max_slots, sizeof(struct nfs4_slot), gfp_flags);
}
static void nfs4_add_and_init_slots(struct nfs4_slot_table *tbl,