From patchwork Wed Jul 1 15:26:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Hansen X-Patchwork-Id: 11636705 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BDDD813B4 for ; Wed, 1 Jul 2020 15:29:55 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 8A90E20809 for ; Wed, 1 Jul 2020 15:29:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8A90E20809 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id AE02D6B00F5; Wed, 1 Jul 2020 11:29:54 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A8FDE8D0047; Wed, 1 Jul 2020 11:29:54 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9A6526B00F8; Wed, 1 Jul 2020 11:29:54 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0025.hostedemail.com [216.40.44.25]) by kanga.kvack.org (Postfix) with ESMTP id 84A3E6B00F5 for ; Wed, 1 Jul 2020 11:29:54 -0400 (EDT) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id F18072DFA for ; Wed, 1 Jul 2020 15:29:53 +0000 (UTC) X-FDA: 76989892266.07.show37_0e0d65e26e81 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin07.hostedemail.com (Postfix) with ESMTP id AC9141803F9A5 for ; Wed, 1 Jul 2020 15:29:53 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,dave.hansen@linux.intel.com,,RULES_HIT:30012:30054:30064,0,RBL:134.134.136.31:@linux.intel.com:.lbl8.mailshell.net-62.18.0.100 64.95.201.95;04yfygo3qfprqf1515eo85863fmbfycmaq1a6qwd6imp7parpwtfru6aqpen6mw.fxq9pqx4gq4mti1pbjjoyshyeqpdozmfdihbabbt775jxo5t1w4u7nrpn5w1s8h.r-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: show37_0e0d65e26e81 X-Filterd-Recvd-Size: 2796 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by imf30.hostedemail.com (Postfix) with ESMTP for ; Wed, 1 Jul 2020 15:29:52 +0000 (UTC) IronPort-SDR: cqtYJ6eWQXnuQRhQSU8k61r/2CFlmFf4tiu2eQ+ipX1I574IcLfnU32bb7YxfZBXBiil7ciWkr hx5lOuDBv1CQ== X-IronPort-AV: E=McAfee;i="6000,8403,9668"; a="208113275" X-IronPort-AV: E=Sophos;i="5.75,300,1589266800"; d="scan'208";a="208113275" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2020 08:29:51 -0700 IronPort-SDR: qii2doTNGxxQ9EAUM+l5Od+zB+Fh1ps2PvsDbF1g75+lgSHfxDfTzMGjfoLJ92LYZMmPa9Lgph 24hh9lQMI5QA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,300,1589266800"; d="scan'208";a="321789364" Received: from viggo.jf.intel.com (HELO localhost.localdomain) ([10.54.77.144]) by orsmga007.jf.intel.com with ESMTP; 01 Jul 2020 08:29:51 -0700 Subject: [PATCH 0/3] [v2] Repair and clean up vm.zone_reclaim_mode sysctl ABI To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org,Dave Hansen ,ben.widawsky@intel.com,alex.shi@linux.alibaba.com,dwagner@suse.de,tobin@kernel.org,cl@linux.com,akpm@linux-foundation.org,ying.huang@intel.com,dan.j.williams@intel.com,cai@lca.pw From: Dave Hansen Date: Wed, 01 Jul 2020 08:26:21 -0700 Message-Id: <20200701152621.D520E62B@viggo.jf.intel.com> X-Rspamd-Queue-Id: AC9141803F9A5 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 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: A previous cleanup accidentally changed the vm.zone_reclaim_mode ABI. This series restores the ABI and then reorganizes the code to make the ABI more obvious. Since the single-patch v1[1], I've: * Restored the RECLAIM_ZONE naming, comment and Documentation now that the implicit checks for it are known. * Move RECLAIM_* definitions to a uapi header * Add a node_reclaim_enabled() helper Documentation/admin-guide/sysctl/vm.rst | 10 +++++----- include/linux/swap.h | 7 +++++++ include/uapi/linux/mempolicy.h | 7 +++++++ mm/khugepaged.c | 2 +- mm/page_alloc.c | 2 +- mm/vmscan.c | 3 --- 6 files changed, 21 insertions(+), 10 deletions(-) 1. https://lore.kernel.org/linux-mm/20200626003459.D8E015CA@viggo.jf.intel.com/ Cc: Ben Widawsky Cc: Alex Shi Cc: Daniel Wagner Cc: "Tobin C. Harding" Cc: Christoph Lameter Cc: Andrew Morton Cc: Huang Ying Cc: Dan Williams Cc: Qian Cai Cc: Daniel Wagner Reviewed-by: Ben Widawsky