From patchwork Wed Mar 27 15:57:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kemeng Shi X-Patchwork-Id: 13605694 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB598C54E67 for ; Wed, 27 Mar 2024 07:02:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 380056B00A0; Wed, 27 Mar 2024 03:01:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F29B56B009C; Wed, 27 Mar 2024 03:01:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C1C086B009F; Wed, 27 Mar 2024 03:01:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id A57FE6B009B for ; Wed, 27 Mar 2024 03:01:56 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 4893540A5A for ; Wed, 27 Mar 2024 07:01:56 +0000 (UTC) X-FDA: 81941924232.05.A6B3244 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by imf06.hostedemail.com (Postfix) with ESMTP id 8934F180009 for ; Wed, 27 Mar 2024 07:01:53 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=none; spf=pass (imf06.hostedemail.com: domain of shikemeng@huaweicloud.com designates 45.249.212.51 as permitted sender) smtp.mailfrom=shikemeng@huaweicloud.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711522914; a=rsa-sha256; cv=none; b=wPxH+BANS5O6ZQVXpHssvug2NDSiEHtyO61gXZa7+tfFpq0YefPwk9TRsJf2pWGU/59PG9 2sKsD5e0VXu7YRKJbsjATz2buIKBQab9yG/tfebm5zGxNAOu3iYiYCcV7u0G661Fb75B7v +Kzb1D/1FzsMCmZfY6eGfrKi9VwVMQ0= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=none; spf=pass (imf06.hostedemail.com: domain of shikemeng@huaweicloud.com designates 45.249.212.51 as permitted sender) smtp.mailfrom=shikemeng@huaweicloud.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1711522914; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UAsT8Yak9lqizvmSum6WSqzKFkKipXZBVQlUgg1I0x8=; b=xmJUZkHzWMbdIMv5Re76zHhNrHqARkVQ4YWkimUiqE6Z1ny7WTnQ0D3OrlSqFuqmvIZDtG B6Sixjnhx51NrsIo25xRTXeEVNCAxwzF1pttJDy5KAjckbheugZ6syFC4sY0ibTEpIDoyL CU23dGGt+aNKrz9X1tHk+1QUpKSmk7c= Received: from mail.maildlp.com (unknown [172.19.93.142]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4V4Hf15L7tz4f3kny for ; Wed, 27 Mar 2024 15:01:45 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.75]) by mail.maildlp.com (Postfix) with ESMTP id C5A4F1A016E for ; Wed, 27 Mar 2024 15:01:49 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.101.6]) by APP2 (Coremail) with SMTP id Syh0CgAnSQxYxANmi6+LIQ--.50310S8; Wed, 27 Mar 2024 15:01:49 +0800 (CST) From: Kemeng Shi To: akpm@linux-foundation.org, willy@infradead.org, jack@suse.cz, bfoster@redhat.com, tj@kernel.org Cc: dsterba@suse.com, mjguzik@gmail.com, dhowells@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: [PATCH v2 6/6] writeback: define GDTC_INIT_NO_WB to null Date: Wed, 27 Mar 2024 23:57:51 +0800 Message-Id: <20240327155751.3536-7-shikemeng@huaweicloud.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20240327155751.3536-1-shikemeng@huaweicloud.com> References: <20240327155751.3536-1-shikemeng@huaweicloud.com> MIME-Version: 1.0 X-CM-TRANSID: Syh0CgAnSQxYxANmi6+LIQ--.50310S8 X-Coremail-Antispam: 1UD129KBjvJXoWrur1rurW3Ww45Cw4xXF1rCrg_yoW8JrWkpr ZxC3y5KF1UAFs293Z3Can2gwnrXa97tFW7G3s0gwsIyF4xJ3W8GFyjgw18tr4jvr93tryx ArZ7tFyxXa40y3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUPmb4IE77IF4wAFF20E14v26rWj6s0DM7CY07I20VC2zVCF04k2 6cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M280x2IEY4vEnII2IxkI6r1a6r45M2 8IrcIa0xkI8VA2jI8067AKxVWUAVCq3wA2048vs2IY020Ec7CjxVAFwI0_Xr0E3s1l8cAv FVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWDJw A2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE 3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr2 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv 67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lFIxGxcIEc7 CjxVA2Y2ka0xkIwI1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2Iq xVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r 1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_JFI_Gr1lIxAIcVC0I7IYx2IY 6xkF7I0E14v26F4j6r4UJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aV AFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZE Xa7IU0TqcUUUUUU== X-CM-SenderInfo: 5vklyvpphqwq5kxd4v5lfo033gof0z/ X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 8934F180009 X-Stat-Signature: esqx7scoqe5jwgjm6p5p6edpwmnszksn X-HE-Tag: 1711522913-191502 X-HE-Meta: U2FsdGVkX19UlMyzxX9yhrteDKFa2rrhsgm+8MqLHT+EyAlgEKNWHzWfp+IPV7t16qvM9jwbgXMyyGwMMt0eVWlCRNfc0jTqtiytcfu9VLvoJUHWLEpDSRcVxMH/MJN9dJMPhb4+5HxaHk6FJk58Cj/JM7Vue1npAEC/xebqYIi8V7RqldcPAAxEKSIEk14mXeY+2U5att+lGSqW7ZCXQxRweXA8EUW5aN3cgXE52DSVtwQmdhverHjRj3umBHxgYuf7o84VsQmwSCACotIYMvk3nMy3FG7MsyUtSUsWdFWuD0irqCWCgAeV8lzMy54qzaVnCP5H6gODd4ZlR2LH8oXXObGB713SQAzXeY+Lm6MB0E8g7bLxuxN5VhGw89T8mOBAmmDQq1tc7UtAGm4+WtxBc2xLwIMZ0fFhPXKkJptf+2pj9MyQcDTiyo6jAp3aGRXJ6PFndOj0TGApz9Y/XfbVk86z5sCTOPP6apPnRyj7fprODYNE9IFE69jr4Z78BMwmabj7kcBwBnWZGaCrghPa0lUkPkWkScvId9z489+JyeF/k5qoW6e+GFyDSdZ9etTiyz1S8GmDN5m898BDavvcR/FcPV59w8ZWLkUoBmn39Z4Qw2eTg6FfQWsYng+DIuFbX4+PrdZ65bPNuHDdrlyjPCuoQmhmqJa3xYgck4xyEgEXqBxCH1DFs8xsKB4M5cmm4hnzfVIIeVfqw19Sl5DuTlOhBnOqQJOEBihmhnwcn2IPi0MMX7LwH0Q9IVgYRwGJJ8yojc5dPe1xCMPYzyoukEmO57E/xv0T+Ssue/kZmmD25XnNZTNCgZS0bGdPV5CoGDw0PLUyuVx+yiNV93th5tXybSVR26BrvvHoxdc0YFXyEBLxa/HbU+h/gNBMKSzaWRSEyY9zdCiYF8PfaLg7RVomKd4wFi0jRwnVMtgz6OKWKuzv6zjZDRF5OiLANa63jlYXck/WBhOhaLd YvMHJ2Xn P1lFYF6I7LfIYYRUA4TGSxXVP0Dd9XPnkh49pkuZq0jtDTh9ZIuTlaeq3xmfuz3nJi/1pHcD+SDzFwJ+EO6QyNNj9KjwP+lA0zRP4vFaXGLrn2BWR10glpw1ZZQVCBsoIUMBlWdULbPU1HlS+CdZRF6DhORfKPLShHTSFy4dAKrb8xqdO1e2d86dFJxNRIW8Whf2gFzKIRaxZhmQc+7zvTatvSgH6t4LzDffz1qWuFJ3JkC0/bYLWwQURxEvWYS910v4kJr+lLcAYtfvdNkC04rxdA1QdRW6VyQo9XTRsnUdva38= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: We never use gdtc->dom set with GDTC_INIT_NO_WB, just remove unneeded initialization of gdtc->dom for now. Signed-off-by: Kemeng Shi --- mm/page-writeback.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 211565d01600..2fd2fd2e1932 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -147,6 +147,7 @@ struct dirty_throttle_control { * reflect changes in current writeout rate. */ #define VM_COMPLETIONS_PERIOD_LEN (3*HZ) +#define GDTC_INIT_NO_WB #ifdef CONFIG_CGROUP_WRITEBACK @@ -154,8 +155,6 @@ struct dirty_throttle_control { .dom = &global_wb_domain, \ .wb_completions = &(__wb)->completions -#define GDTC_INIT_NO_WB .dom = &global_wb_domain - #define MDTC_INIT(__wb, __gdtc) .wb = (__wb), \ .dom = mem_cgroup_wb_domain(__wb), \ .wb_completions = &(__wb)->memcg_completions, \ @@ -210,7 +209,6 @@ static void wb_min_max_ratio(struct bdi_writeback *wb, #define GDTC_INIT(__wb) .wb = (__wb), \ .wb_completions = &(__wb)->completions -#define GDTC_INIT_NO_WB #define MDTC_INIT(__wb, __gdtc) static bool mdtc_valid(struct dirty_throttle_control *dtc)