projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43095d3
)
NFSv4.1: nfs4_alloc_slots doesn't need zeroing
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Mon, 19 Nov 2012 23:03:22 +0000
(18:03 -0500)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Wed, 21 Nov 2012 14:29:52 +0000
(09:29 -0500)
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>
fs/nfs/nfs4proc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/nfs4proc.c
b/fs/nfs/nfs4proc.c
index 1ac339b4f092d54163dc692b24e7155d9883c134..0402ebb9b4907d7b10b92453e4faa08962a4a99c 100644
(file)
--- 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 k
calloc
(max_slots, sizeof(struct nfs4_slot), gfp_flags);
+ return k
malloc_array
(max_slots, sizeof(struct nfs4_slot), gfp_flags);
}
static void nfs4_add_and_init_slots(struct nfs4_slot_table *tbl,