Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-6142 kernel: use kmem_cache_zalloc as appropriate.
[fs/lustre-release.git]
/
lnet
/
include
/
lnet
/
lib-lnet.h
diff --git
a/lnet/include/lnet/lib-lnet.h
b/lnet/include/lnet/lib-lnet.h
index
6db8a5d
..
f27b5f0
100644
(file)
--- a/
lnet/include/lnet/lib-lnet.h
+++ b/
lnet/include/lnet/lib-lnet.h
@@
-375,7
+375,7
@@
lnet_msg_alloc(void)
{
struct lnet_msg *msg;
- msg = kmem_cache_
alloc(lnet_msg_cachep, GFP_NOFS | __GFP_ZERO
);
+ msg = kmem_cache_
zalloc(lnet_msg_cachep, GFP_NOFS
);
return (msg);
}
@@
-392,7
+392,7
@@
lnet_rspt_alloc(int cpt)
{
struct lnet_rsp_tracker *rspt;
- rspt = kmem_cache_
alloc(lnet_rspt_cachep, GFP_NOFS | __GFP_ZERO
);
+ rspt = kmem_cache_
zalloc(lnet_rspt_cachep, GFP_NOFS
);
if (rspt) {
lnet_net_lock(cpt);
the_lnet.ln_counters[cpt]->lct_health.lch_rst_alloc++;