Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF019C433FE for ; Tue, 11 Jan 2022 02:26:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244327AbiAKC0P (ORCPT ); Mon, 10 Jan 2022 21:26:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244189AbiAKC0O (ORCPT ); Mon, 10 Jan 2022 21:26:14 -0500 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA732C06173F for ; Mon, 10 Jan 2022 18:26:13 -0800 (PST) Received: by mail-yb1-xb30.google.com with SMTP id j83so43433396ybg.2 for ; Mon, 10 Jan 2022 18:26:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=P1ENhSWsAV/dz7z50ZJCYCuaP4VRXWxn4r2j+Sg+6UA=; b=T55GOK2PpaNsrGqiMFTAqH2V7QdMHJhf0a3BMQ7I8S2f2h7BI4JXGBsntFUbrKsnrl rEzOH+AqALeZAy8Qhyi3rFQo8NaIqguy97C9ERCdlxVx+n7E8WH64/TjwHln91YBdBBk AWYzFw4wU9mhtUfJSXGLzZymCyI9uQqeU39t+zioXUDqxTWAI0BMcwXbJxPBATEie6rv xQARIPZV9m3Nn76w+UJ2xS8QDkRdVgio/eXbMdoElnUL60H99TIz4WO/aNSZ8URTri7U 84EE4GnWjFwaNRNtzSO8JCOqqvhya0pINZ5DHiHwfs7OeADtTaDkmdukFBkr8yOlXG57 zZYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=P1ENhSWsAV/dz7z50ZJCYCuaP4VRXWxn4r2j+Sg+6UA=; b=sprBonu+zBN9hg0h2cfa0YHED8ajGjxfCbGbWu/z18tp9ToHAnxNuGLB46sQyuUxlb E7KsKdTEMATNm9JWZqAVvLg/uQu7dnX/PNbuJ7T5QSzaRgfJfq0h/8TG/MmtmLH1PChb XWc9kwF1vQZgg8pg4zP6SOrVlzXWzCwqPaXhlfSFnoOqzmnCzWfUhQ/9LB4UlEPV3ZfG nbELCWuq+H5Bw2FuhpnQT/vlmTpRvP1ux9zsv0U+TBl+yXhSwOQGEVh6aovSsx7xVSpj gPpgC3AOvesYpKH1yekwN4bGtPuYNlEsccxNc5M3VJcZxnJK4mnGL+7lWWDqBhMATngI A0wA== X-Gm-Message-State: AOAM532IeQ70JqW8Fg20T/eZ5yw5hksEimEcXg31CPCul296bz+r1b+2 EcqRvovRjLgKoxLiP+YhKib5m6VDc16/JjFm7swysw== X-Google-Smtp-Source: ABdhPJxowJER3pmqEV7tisAM0wfJwlxJtB+yz5CCw6efvbLqhAjzPpwfWxGFtuk58ztzM2xStozGxj4PibwWfRfK6RY= X-Received: by 2002:a25:b194:: with SMTP id h20mr3367724ybj.485.1641867973020; Mon, 10 Jan 2022 18:26:13 -0800 (PST) MIME-Version: 1.0 References: <20220111010302.8864-1-richard.weiyang@gmail.com> <20220111010302.8864-2-richard.weiyang@gmail.com> In-Reply-To: <20220111010302.8864-2-richard.weiyang@gmail.com> From: Muchun Song Date: Tue, 11 Jan 2022 10:25:37 +0800 Message-ID: Subject: Re: [PATCH 2/4] mm/memcg: mem_cgroup_per_node is already set to 0 on allocation To: Wei Yang Cc: Johannes Weiner , Michal Hocko , Vladimir Davydov , Andrew Morton , Shakeel Butt , Roman Gushchin , Vlastimil Babka , Matthew Wilcox , Yang Shi , Suren Baghdasaryan , LKML , Cgroups , Linux Memory Management List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 11, 2022 at 9:03 AM Wei Yang wrote: > > kzalloc_node() would set data to 0, so it's not necessary to set it > again. > > Signed-off-by: Wei Yang Reviewed-by: Muchun Song Thanks.