Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12407396rwd; Fri, 23 Jun 2023 05:53:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Wg0pZZvgBgUjN3PHTBiH2TxGAJn3WzcQZVRe403nKj7KfblurMmeYDFfUFv+ApXZJuz0r X-Received: by 2002:a05:6808:1b07:b0:399:b7bd:9041 with SMTP id bx7-20020a0568081b0700b00399b7bd9041mr23517199oib.34.1687524814132; Fri, 23 Jun 2023 05:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687524814; cv=none; d=google.com; s=arc-20160816; b=RDiGNqISkyP2GztmDshtQS94AenqzQ8zi7APCKbKwzPTEGBA84dr3yE1+8/UKK8qCz PNXvFfP9oMTjFTgTFP65VE/+C4T9/XhssDtaVeF/eH0R0Ryijap3vT/vum5ydGf61sif 6yytULXwcLQn2sdkeThPQQYCZIEjmDc4Zd2Yw4wWii7o9z4FAZMo9zIfu6w3HZA0bWvb lWCGy39PC69hIxaf56FfsY+mv17656msIrB0QdWFnPseKAPRPyFcBy3pqeixnIVoeIwa Fa1/NuoQoNOHlEaOsXTup+Kkp6JqaY/q65X4tBdpg5Z84jruythYXd6VFciesZIEKs6N nUqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3J6qedKH7rACUI+d8+QjoI1iru+7/a5M9lap7RdXq+s=; fh=SPdtqISkvehtpMWGSGeTLalESSj9pFsVGB3hBHhvzlk=; b=y9XPrbG9jLatXZr/pfd/GbOUJGIieG4mhjTQun9D7bc+UNGgZMQ6Zb3rR81ylmlZpb TH+S8efHS0o3dMNOJBiQoL4oHWYKVT+RWSlP+Pg4Pp8/FNnaKmBSzyThTe55HwU0t9qf SyprhZmt5TendL//PHn3zWOTiouaRv34hGdHsGoouEr2lMTW2PZJ7thGQA9GF8HSwYzL CJqB5CYqBaXTRWROJGprIPVGQwv2DWtOR8WTAA/m36A/OM2Z1u1NQi4SY7p30m+YlUx1 /gMq9pafzpGlJXgDmPqeJXajiV9sgeaMNNjPr3Ur0xq4F6KWdzwlCuD0koVL8zz+CsRm ubUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=Q524DUGT; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a17090aad4400b0025e0ecee2dfsi1830685pjv.113.2023.06.23.05.53.16; Fri, 23 Jun 2023 05:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=Q524DUGT; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230229AbjFWMvt (ORCPT + 99 others); Fri, 23 Jun 2023 08:51:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231940AbjFWMvi (ORCPT ); Fri, 23 Jun 2023 08:51:38 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0EB92134 for ; Fri, 23 Jun 2023 05:50:51 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-66872dbc2efso106265b3a.0 for ; Fri, 23 Jun 2023 05:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1687524651; x=1690116651; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=3J6qedKH7rACUI+d8+QjoI1iru+7/a5M9lap7RdXq+s=; b=Q524DUGT6itGV4gw01qJj/zWbJLa4vy2WCXqnWOngK0C3q+dq5EKhIS0CVZv0oxxho LJ6tY9YfoIHNM/tflF8trZPv/Spx8OYgEAYGDhp6iajWSx+dfQpGCxtVSU4j+uchKR2K 6jjaYk2avrTfJwxxTgNPxH+prD4PA2RYda//8FNhgDDbtNG8gCEmPUtJ+VXKPa4DXVej a5KLbc1PmFNVMjg9t+MjU8GHA1HEy3OLaOZU0A/n71b/fjkikDpbyETS6JPqwOfw6qlc 81KayU6/lII4/pSrE7vPjFTNx81tmGljnxk2j498q4g7qxCoplXlCdPQ4N13nBnNs8tt 8JpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687524651; x=1690116651; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3J6qedKH7rACUI+d8+QjoI1iru+7/a5M9lap7RdXq+s=; b=QN5+/gYXNnF21eAIqR+qZHfCoa/2OGKMYLzkGKfCqTbCadoZ9RU0e6zfrS2J6T6t0O YauqrUm5xalpHrUMzBWdRbSmThWaCpOJphLZmCRhq64gWlHNMuXOexS8YIJXAbhhBfu/ cH2WnRobonGBUp14gKv8sNdsi75elWcNocWaXeKE1dmGvxefHEnEQeYUqwHBQ/E4XmKs 6RkaZ/WvilwMMAEc1t9P4MUKSssTUiKJKkpDQC1YnjFdNTwiHb3FO4fpC6ImLrACTTeW JyS8xfxKDI1JHp+sUV7gY5l/TpCeje1HF8ka2Ebj0Qd+jGWwWqzUrlsHsH7XzupGcbiF 3saA== X-Gm-Message-State: AC+VfDw0zJODru0P/inS4/gLD2R06C9TckgSBy4Ux4zCN6FbABnd+Uvp xs+/Z4MJKW8ZFcCXAbaitoit3Q== X-Received: by 2002:a05:6a00:3186:b0:668:7fe6:c220 with SMTP id bj6-20020a056a00318600b006687fe6c220mr14325912pfb.3.1687524651198; Fri, 23 Jun 2023 05:50:51 -0700 (PDT) Received: from [10.4.168.167] ([139.177.225.254]) by smtp.gmail.com with ESMTPSA id x21-20020aa79195000000b0063a04905379sm6063171pfa.137.2023.06.23.05.50.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Jun 2023 05:50:50 -0700 (PDT) Message-ID: <31d3f685-3017-25d8-5b0b-2795ed7049bc@bytedance.com> Date: Fri, 23 Jun 2023 20:50:41 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [External] Re: [PATCH 01/29] mm: shrinker: add shrinker::private_data field Content-Language: en-US To: Vlastimil Babka , akpm@linux-foundation.org, david@fromorbit.com, tkhai@ya.ru, roman.gushchin@linux.dev, djwong@kernel.org, brauner@kernel.org, paulmck@kernel.org, tytso@mit.edu Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, dm-devel@redhat.com, linux-raid@vger.kernel.org, linux-bcache@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-nfs@vger.kernel.org, linux-xfs@vger.kernel.org, linux-btrfs@vger.kernel.org References: <20230622085335.77010-1-zhengqi.arch@bytedance.com> <20230622085335.77010-2-zhengqi.arch@bytedance.com> From: Qi Zheng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi Vlastimil, On 2023/6/22 22:47, Vlastimil Babka wrote: > On 6/22/23 10:53, Qi Zheng wrote: >> To prepare for the dynamic allocation of shrinker instances >> embedded in other structures, add a private_data field to >> struct shrinker, so that we can use shrinker::private_data >> to record and get the original embedded structure. >> >> Signed-off-by: Qi Zheng > > I would fold this to 02/29, less churn. OK, I will fold this to 02/29 in the v2. Thanks, Qi > >> --- >> include/linux/shrinker.h | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/include/linux/shrinker.h b/include/linux/shrinker.h >> index 224293b2dd06..43e6fcabbf51 100644 >> --- a/include/linux/shrinker.h >> +++ b/include/linux/shrinker.h >> @@ -70,6 +70,8 @@ struct shrinker { >> int seeks; /* seeks to recreate an obj */ >> unsigned flags; >> >> + void *private_data; >> + >> /* These are for internal use */ >> struct list_head list; >> #ifdef CONFIG_MEMCG >