Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2089703pxb; Mon, 8 Mar 2021 13:59:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxx8sM/5xwF2BnWjoI/DK9ev55FsvlQMLNkPxTWUDUYddoh251ICzhNxXhV8x+mOKEF1MIs X-Received: by 2002:a17:906:2344:: with SMTP id m4mr16730863eja.327.1615240757137; Mon, 08 Mar 2021 13:59:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615240757; cv=none; d=google.com; s=arc-20160816; b=UPIGMW0aLyxtoOjPRxF5anP9eQS077wTWYRyZeZ9Tk/VSIJPs0Ki3gLgz11JwTT6Xv 7nCGwNggYGIebszdei8xq+yVN1YPMr/023jZYjZWcvJuWBnqu7Dwt40RWycGPz6RH2fr 45VNXiiuAuVa6jLba5SODmIRcgYN8LWUTQtXbd8+Dz882ZfxwD4herBvSmRYTTMAoJx3 z1dlgtqwAhbHyaOkeIfpZsm5efkj9bdKYgI2Z7/sHGU2QDkPs3Jh4Uq03wEhNmlS1f7c QUElXAcv5+36K0qrMRAeEW/RmOopgYMjdsn2nlIvQCd2B86rDrz81/ptlm6SAkRsZVqF xbOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=khP6ZcxYFVDRWDYG0T+rbHb6YKkL+/NsAq7MfcJL/3k=; b=pLF5DPGn704Ju8+vY+xnvO3WTwqK9J69ClU/sVPpxaBexh826f1UluGeJuc0PPQZ6X mCFEk2iEKt3qiBxI8GgMiprC64w49V+dbC7tBh/25VYGrRH7y/bXGj5SLE/+Hb3lCpK1 CjKx7L+ocDo7qfNBxLE+5K/9X5njd1k4HVmlx/W6/gL1YR6qObSn+uuKI1Jhp33jUEn5 6swvEMy1FHjct78M8Py0wF6EANbJIZdIbkyTm02ipmb3KFT0PuavDxmZYYEodWp9S4Lk a/jfLcZlELpH8GP7cxETU+2sRNel23VXNyK2LVaKIL3SYxvRFn6zuCzFqU+swoHVRryD PfEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DAuY2Snk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si8002549edy.392.2021.03.08.13.58.53; Mon, 08 Mar 2021 13:59:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DAuY2Snk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231926AbhCHV51 (ORCPT + 99 others); Mon, 8 Mar 2021 16:57:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231126AbhCHV5X (ORCPT ); Mon, 8 Mar 2021 16:57:23 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83520C06174A for ; Mon, 8 Mar 2021 13:57:22 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id k9so23495775lfo.12 for ; Mon, 08 Mar 2021 13:57:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=khP6ZcxYFVDRWDYG0T+rbHb6YKkL+/NsAq7MfcJL/3k=; b=DAuY2SnkTq4kpznO/OR8hpixQWW/2Z9iRHBq2QFf3hMnIXGIFb03qdLXNtJxwrhNGd 3izsTWnjGrT67Huo9kgm3bJSkk8jBNm2Fy0lQccrE8yEp3sGHlzxuKdoGe5B8gypbEZs PgguuAqFFpsJwemWMW9ZYiC9flS1cdAsb3YWVwmNyGTU294MM+n0e6SASQ1RL8zKeMHY TBbz6GmWAzgwRIUeOJxS9jx/lNMJUfQa6EstM5U8eWNqc7ZqRvIE35Qovzzfc7LtQX3+ zCB6QbIYWpKRmOg5SrsCB84iOf99jFLmgmRJhgG5ndhSLC5ILGtzRAvNz8eBtux+l04v vpiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=khP6ZcxYFVDRWDYG0T+rbHb6YKkL+/NsAq7MfcJL/3k=; b=slw+SzCczak5vP7Dwx0UmNTY3qlL7SdpbyTnnXQR9+aX3TGdDTmDGGavc5z4HiI6kQ wmTyocuWxMqCGp12pOPTKrL2dUj2KHgCGjFsOiGj/Ng5CdCVf1E03di4xaXrJZ/fSDAv YPMbCx2z5SmsOIF+kiK41sP2UNOxrRz3J2VkbY/4gcvUotoQmuknzyZFWikb/4KBooz8 KPVXxcJ/3kjScL2hBPVOQCvfl3/GKJ2HG2qVh6Bm+x9O2AbUhfia5eYgTp9PhhLnSBaM FABUY6E+rJPR3hIbmxw/F0mfTHtWzR+1vJ9b3ehIYM2zQuIYrpxDGcs7N+tJeHuLuKpa HkQg== X-Gm-Message-State: AOAM5316SOvgH2N3MsDp9pScn1YVv6nIR7/enyNesEKSUK0RsZTsSMwM xO/PAr7Q+0Jmu2iN+wjeI5m/pkf8l+9lfxfB+bBGmg== X-Received: by 2002:a19:f50e:: with SMTP id j14mr5587045lfb.299.1615240640883; Mon, 08 Mar 2021 13:57:20 -0800 (PST) MIME-Version: 1.0 References: <20210217001322.2226796-1-shy828301@gmail.com> <20210217001322.2226796-12-shy828301@gmail.com> In-Reply-To: <20210217001322.2226796-12-shy828301@gmail.com> From: Shakeel Butt Date: Mon, 8 Mar 2021 13:57:06 -0800 Message-ID: Subject: Re: [v8 PATCH 11/13] mm: vmscan: don't need allocate shrinker->nr_deferred for memcg aware shrinkers To: Yang Shi Cc: Roman Gushchin , Kirill Tkhai , Vlastimil Babka , Dave Chinner , Johannes Weiner , Michal Hocko , Andrew Morton , Linux MM , linux-fsdevel , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 16, 2021 at 4:13 PM Yang Shi wrote: > > Now nr_deferred is available on per memcg level for memcg aware shrinkers, so don't need > allocate shrinker->nr_deferred for such shrinkers anymore. > > The prealloc_memcg_shrinker() would return -ENOSYS if !CONFIG_MEMCG or memcg is disabled > by kernel command line, then shrinker's SHRINKER_MEMCG_AWARE flag would be cleared. > This makes the implementation of this patch simpler. > > Acked-by: Vlastimil Babka > Reviewed-by: Kirill Tkhai > Acked-by: Roman Gushchin > Signed-off-by: Yang Shi Reviewed-by: Shakeel Butt