Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3981901ybc; Tue, 26 Nov 2019 01:44:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxxVtcrPEy/BjL2hm3bBbxrDW3d40Iiz+ERT4cb9ctGP86bt14VN4UW6/lSBekCOHy8+mfL X-Received: by 2002:a17:906:af5a:: with SMTP id ly26mr42926844ejb.252.1574761446234; Tue, 26 Nov 2019 01:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574761446; cv=none; d=google.com; s=arc-20160816; b=GlpCDxUGfcug5xK/zdWgkVNXTnhVWnUPftl7LnlmYM2zXNsk1XTuE9zdxLWj2h9hbH EslUoiOyChplYcXTqz3oG24HQR93QyMhqJoYJmAEfOyeqry7Er1Od1NhmGC2zcWu4WBJ XcDicn2JrFgoH1oFWgxYIjD782eSqCfSy6iS4G+W//nUj5bT6HoHekaijfLqAneh2qsf 8srKlkdkOXN7Hs2UmTxWE4U6PzuLh04SCX7trqRc8x3id/3/ottDfRYHbu8eVlF2HuH0 QmxgZ9Yox/DBnNCa3SSZMNZ/Dy/RFmdUUGK18yzYyY30kSKgovm3M9jzkMRjZFKd+W7w qSMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=+X8y+dcZqGJt/BiDAAPPnNv4yk0HtGaVSotBZMMN8Rk=; b=G2zQTt545SEZIph3oEhGUWIhxsXMCAC6zIuXI6O5pvbkdSU8O0lok361YRR+mVGhqD krr2yNugAv+4DBpAMCfTkPoPYvRsbmo0jHFviICjDhekQp0ttN6QqVKbG1Kjpccc1b5U L9SPr340AnaJOwQA16FAYVpOkGful3vcs03QYcCxoeviMuipWrLQ4dHSf1k5SCJ0muwG Efa6Qz4ErLOxbLdG6LMQImZDMrtQeglfe8YTrrNXjhG93czEUV30XjnJIUIb5JCf+sTb G4FP0z9T/0S/GzMOQmN5NuJkrNIInmYvd60BTyAFfiYUgByY1LyRv4jzY32RlUPwUril 6NZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qc22si6437817ejb.151.2019.11.26.01.43.42; Tue, 26 Nov 2019 01:44:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727490AbfKZJmk (ORCPT + 99 others); Tue, 26 Nov 2019 04:42:40 -0500 Received: from foss.arm.com ([217.140.110.172]:60338 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727275AbfKZJmk (ORCPT ); Tue, 26 Nov 2019 04:42:40 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 00A3C30E; Tue, 26 Nov 2019 01:42:38 -0800 (PST) Received: from [10.163.1.41] (unknown [10.163.1.41]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CDA173F52E; Tue, 26 Nov 2019 01:42:35 -0800 (PST) Subject: Re: [PATCH] mm: fix comments related to node reclaim To: Hao Lee , akpm@linux-foundation.org Cc: mgorman@techsingularity.net, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20191125142018.GA21373@haolee.github.io> From: Anshuman Khandual Message-ID: Date: Tue, 26 Nov 2019 15:13:22 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20191125142018.GA21373@haolee.github.io> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/25/2019 07:50 PM, Hao Lee wrote: > As zone reclaim has been replaced by node reclaim, this patch fixes related > comments. > > Signed-off-by: Hao Lee > --- > include/linux/mmzone.h | 2 +- > include/uapi/linux/capability.h | 2 +- > include/uapi/linux/sysctl.h | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h > index 9e47289a4511..7e3208f4f5bc 100644 > --- a/include/linux/mmzone.h > +++ b/include/linux/mmzone.h > @@ -747,7 +747,7 @@ typedef struct pglist_data { > > #ifdef CONFIG_NUMA > /* > - * zone reclaim becomes active if more unmapped pages exist. > + * node reclaim becomes active if more unmapped pages exist. > */ > unsigned long min_unmapped_pages; > unsigned long min_slab_pages; > diff --git a/include/uapi/linux/capability.h b/include/uapi/linux/capability.h > index 240fdb9a60f6..dd6772f16eec 100644 > --- a/include/uapi/linux/capability.h > +++ b/include/uapi/linux/capability.h > @@ -273,7 +273,7 @@ struct vfs_ns_cap_data { > /* Allow enabling/disabling tagged queuing on SCSI controllers and sending > arbitrary SCSI commands */ > /* Allow setting encryption key on loopback filesystem */ > -/* Allow setting zone reclaim policy */ > +/* Allow setting node reclaim policy */ Does this point to the capability for accessing vm.zone_reclaim_mode = 0 sysctl knob ? In that case we should not be changing the name here as the interface still retains the original name 'zone_reclaim_mode'. > > #define CAP_SYS_ADMIN 21 > > diff --git a/include/uapi/linux/sysctl.h b/include/uapi/linux/sysctl.h > index 87aa2a6d9125..27c1ed2822e6 100644 > --- a/include/uapi/linux/sysctl.h > +++ b/include/uapi/linux/sysctl.h > @@ -195,7 +195,7 @@ enum > VM_MIN_UNMAPPED=32, /* Set min percent of unmapped pages */ > VM_PANIC_ON_OOM=33, /* panic at out-of-memory */ > VM_VDSO_ENABLED=34, /* map VDSO into new processes? */ > - VM_MIN_SLAB=35, /* Percent pages ignored by zone reclaim */ > + VM_MIN_SLAB=35, /* Percent pages ignored by node reclaim */ > }; > > >