linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bfq: Replace kmalloc_node with kzalloc_node
@ 2019-11-19 15:02 Xianting Tian
  2019-12-03 15:01 ` Michal Koutný
  0 siblings, 1 reply; 2+ messages in thread
From: Xianting Tian @ 2019-11-19 15:02 UTC (permalink / raw)
  To: paolo.valente, axboe, tj; +Cc: linux-block, cgroups, linux-kernel

Replace kmalloc_node with kzalloc_node

Signed-off-by: Xianting Tian <xianting_tian@126.com>
---
 block/bfq-cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/bfq-cgroup.c b/block/bfq-cgroup.c
index 86a607c..9a84d79 100644
--- a/block/bfq-cgroup.c
+++ b/block/bfq-cgroup.c
@@ -1385,7 +1385,7 @@ struct bfq_group *bfq_create_group_hierarchy(struct bfq_data *bfqd, int node)
 	struct bfq_group *bfqg;
 	int i;
 
-	bfqg = kmalloc_node(sizeof(*bfqg), GFP_KERNEL | __GFP_ZERO, node);
+	bfqg = kzalloc_node(sizeof(*bfqg), GFP_KERNEL, node);
 	if (!bfqg)
 		return NULL;
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-03 15:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-19 15:02 [PATCH] bfq: Replace kmalloc_node with kzalloc_node Xianting Tian
2019-12-03 15:01 ` Michal Koutný

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).