Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp649151ybc; Tue, 19 Nov 2019 07:07:25 -0800 (PST) X-Google-Smtp-Source: APXvYqy5akMrma+YHvlX3a/MSwByQ9hjjaKCPmtxjR5Sxys3/putybWZjxCsWQpFbYD2dvrBCPP1 X-Received: by 2002:ac8:ccf:: with SMTP id o15mr33124334qti.380.1574176045440; Tue, 19 Nov 2019 07:07:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574176045; cv=none; d=google.com; s=arc-20160816; b=K/PlWbRHcaWbd5QY7g1psOQe4buD9q4uYZb2P8faqzyPirl2+Y61VviVv8k+wmyjiG VyVOGi1zUROELmT1fb/TENvxfFRizVp1flFCfqN0Mn/M4STVEvZV9WehR6fSH45zCqE7 NbqpLyeU2QffynhhBq39iNUVfg8nG16N6qwpVa9nxIzAytmb0hSZ22aAWQllzAbzSN5Q zlkFhwJLBoppbasiQBjUn3FF4h8lxuYkJkqN15wP21mybchRRVK+4q1QaImtUWJhBKiH JV3ApDPIjAA50rhSfNk8tWx989m52BPi6iOYJriFoxBwTfoWjeYfL9y7rY2tsrudTxIz 4ckw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=ECh/gxGvyp9KSqXajLyZib+zF6gPBMDIeYZREp09BV4=; b=XrmUPA2BHrjomCDLeIZVa9T9lR6SFrex35TmKzuSLBtVkleQA5CT2AXtcUtfW5sjg8 boVXXFigJpxerQFgMt5g14BhiNoW2uR4hYEGFasc4BW5xC4+fRGuyWDPY05zlTqOnd1c V754ipM52t4gHv555XxeIl0gT+N/dnEAkMJjZzcr2ahNpfUM2dTZdvuAIp5Fu5/goMeU 5zRs28EGJjUOC/1+ekMEH1NRFmk5kKyEY8k+H1+9kiRLNVAfpv1r+9P5ywZ2CYDWyfke IVUPcya6T7fbitYhLWVnOyY/wqUaHirO+zdbBqSYsSJjs+j8oUkMogyCYDEwisIy+yF5 j7YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=lI9rukbz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d6si11231402edo.349.2019.11.19.07.06.55; Tue, 19 Nov 2019 07:07:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=lI9rukbz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727949AbfKSPFJ (ORCPT + 99 others); Tue, 19 Nov 2019 10:05:09 -0500 Received: from m15-113.126.com ([220.181.15.113]:52604 "EHLO m15-113.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727066AbfKSPFJ (ORCPT ); Tue, 19 Nov 2019 10:05:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=ECh/gxGvyp9KSqXajL yZib+zF6gPBMDIeYZREp09BV4=; b=lI9rukbzWZ6xgpv1+CFDPY6+fj9Ivfp2JU Bljz1Y6yJsW4Bcj8k8VczsLLdQpMwGQ22GX9Yl1/cPzGzMCJx1tnt63brEUshgqx LAhZV1mMpc0A5dHWeW/+El2RKQchrLG2Y861Grsq55zDUEXLDnp6nv+iAVTRBs9p zd1pGJbcg= Received: from 192.168.137.246 (unknown [112.10.75.10]) by smtp3 (Coremail) with SMTP id DcmowADHg_UDBNRdRsnDAw--.8869S3; Tue, 19 Nov 2019 23:02:29 +0800 (CST) From: Xianting Tian To: paolo.valente@linaro.org, axboe@kernel.dk, tj@kernel.org Cc: linux-block@vger.kernel.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] bfq: Replace kmalloc_node with kzalloc_node Date: Tue, 19 Nov 2019 10:02:26 -0500 Message-Id: <1574175746-8809-1-git-send-email-xianting_tian@126.com> X-Mailer: git-send-email 1.8.3.1 X-CM-TRANSID: DcmowADHg_UDBNRdRsnDAw--.8869S3 X-Coremail-Antispam: 1Uf129KBjvdXoWrXr45Zr15Xw4UCr4rXF1kXwb_yoWxXFc_G3 ykGr1I9ryUAryfCrnY9F9xWFZ0kFWxWwnY93W3Cr13ZF15Ja1kA3sxXr47GrsxuFWxCry3 X34qgrnrJFn7tjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8KNt7UUUUU== X-Originating-IP: [112.10.75.10] X-CM-SenderInfo: h0ld03plqjs3xldqqiyswou0bp/1tbiHgVypF16FasP8gAAsp Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace kmalloc_node with kzalloc_node Signed-off-by: Xianting Tian --- 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