From mboxrd@z Thu Jan 1 00:00:00 1970 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 9CB67ECAAD3 for ; Wed, 7 Sep 2022 03:29:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229685AbiIGD3a (ORCPT ); Tue, 6 Sep 2022 23:29:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiIGD30 (ORCPT ); Tue, 6 Sep 2022 23:29:26 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 938FF1F9 for ; Tue, 6 Sep 2022 20:29:22 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MMnjf4yKFznWK2; Wed, 7 Sep 2022 11:26:46 +0800 (CST) Received: from dggpemm500014.china.huawei.com (7.185.36.153) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 7 Sep 2022 11:29:20 +0800 Received: from [10.174.178.120] (10.174.178.120) by dggpemm500014.china.huawei.com (7.185.36.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 7 Sep 2022 11:29:19 +0800 Message-ID: Date: Wed, 7 Sep 2022 11:29:19 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 CC: , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH -next v3 2/2] mm: sysctl: Introduce per zone watermark_scale_factor Content-Language: en-US To: References: <20220905032858.1462927-1-mawupeng1@huawei.com> <20220905032858.1462927-3-mawupeng1@huawei.com> From: mawupeng In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.120] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500014.china.huawei.com (7.185.36.153) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/9/7 2:23, Luis Chamberlain wrote: > On Mon, Sep 05, 2022 at 11:28:58AM +0800, Wupeng Ma wrote: >> diff --git a/kernel/sysctl.c b/kernel/sysctl.c >> index 205d605cacc5..d16d06c71e5a 100644 >> --- a/kernel/sysctl.c >> +++ b/kernel/sysctl.c >> @@ -2251,8 +2251,6 @@ static struct ctl_table vm_table[] = { >> .maxlen = sizeof(watermark_scale_factor), >> .mode = 0644, >> .proc_handler = watermark_scale_factor_sysctl_handler, >> - .extra1 = SYSCTL_ONE, >> - .extra2 = SYSCTL_THREE_THOUSAND, >> }, >> { >> .procname = "percpu_pagelist_high_fraction", > > Please move the sysctl from kernel/sysctl.c to mm/page_alloc.c while > at it, you can git log the kernel/sysctl.c for prior moves and for > the motivations. No need to keep expanding on the existing table. > > Luis Ok. I will move this sysctl to mm/page_alloc.c next version.