Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp823739ybt; Fri, 26 Jun 2020 12:25:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkJD0Vnk9JB+ZSe4deE+GQ1A+H+aCyq0OJzm0KTpoMOPyuus+Yc2mqTo5eCt8rJsgzIz01 X-Received: by 2002:a50:a701:: with SMTP id h1mr4852707edc.170.1593199508677; Fri, 26 Jun 2020 12:25:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593199508; cv=none; d=google.com; s=arc-20160816; b=e6lZlbyjUIG7UUXTYJ7Nm4lRVW2j4S8aAPuEsgb3WnFPcToGVFOd6FDyadUt4LDn8X sPwoq8upH1Q1Z0tYZH1+mhfNbcVfcIlp5dV0dItZwXFFQd03j2RmUrc1T5dd5asTkNdJ UK2zJUhRaaiAnd/900JgEYvaTPG76QeXkB2quwqm0PJiRsumtxmyJaRDgNZ7NI8TA06K cucfnlXAijPa5X2hSXABG2Le+2iISowJkZkFDUJ4axkgxtsIBHISG+rUgWuJVrOQCcPX pjXVIFvseEe92K+2uzskIdavMjauoq0J31qdZCh/Wr4W/EpHX7rVpAWDQy4XdbA/b55x mPnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bVNITXsH6ARrT0iyl9SMYhunOQ9C68Vgy+G+vYxeBIQ=; b=Y2jNIU6YjypaH0otlNL3ZyO8P+arXXj5aNEfM2n/Djje40y0oBSkIUgUl0rUPKrV3M cShwGI6PuAzDWW5stqywOVQTIcOSdVo3LcSL5saerGRQ6AtM7LjIC//jeD1O/OrXtznq FfasXbzynV8cv8OugkTRZ/ivO1iOUIkTF96X1rscOo3ucltcIztHR+Rk26JeKNj/eKv8 2IqVJHccc9gCZ91b5MvhU4Zl3BDlcUyzCqxo/wP8FJC7++Qu5y9Wu3ogZcLtSMgBuouK uSmUBKL3LSNv667W89kLc+wk6k6I/gryADKa3DSgWTfL6irIQpkrNN/Lv6C50vstOdEQ xOvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=bZNUv2Ul; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j3si9289026edt.8.2020.06.26.12.24.44; Fri, 26 Jun 2020 12:25:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=bZNUv2Ul; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725806AbgFZTYf (ORCPT + 99 others); Fri, 26 Jun 2020 15:24:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbgFZTYe (ORCPT ); Fri, 26 Jun 2020 15:24:34 -0400 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 286F6C03E979 for ; Fri, 26 Jun 2020 12:24:34 -0700 (PDT) Received: by mail-qk1-x743.google.com with SMTP id r22so9787587qke.13 for ; Fri, 26 Jun 2020 12:24:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=bVNITXsH6ARrT0iyl9SMYhunOQ9C68Vgy+G+vYxeBIQ=; b=bZNUv2Uly4BUZw63U5yhlWhcO7skTGQLSzUc8Qex6AlUPmwdDEmo93zMJbBIqzRpuj hDDzRvzEfk06xBiQeu7KlCUywScOYS1bSFmTctKQZ2xCoY2s6bo63N8Um3rPJBdzRO+m lZ/Hqke2UiYw/G8IVFOiF0gk6yxdrLDfY+hEEQCUrpZFLRfPQ3jcwx4nce95tl48+uOl BLGUeyzfJNPZzv/BHNpRIM2Lfpu2MhOeR5Gs/BcoRemjBlB2giVtXry2Wr8Z7sk0oN9h j2PJPty9aQJGtx5mIzjNUrIdWx1mgMlDvrhfA6uTh/x6CPnVh2FZ6WNHKaSa3F4ubBi+ wAhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=bVNITXsH6ARrT0iyl9SMYhunOQ9C68Vgy+G+vYxeBIQ=; b=gLq6Sdb3Ns7P0a03ivzfy5keTEMWalJoBlIsTT5x6klbG/MePyyO3tzubFSVLviwu4 ZzGvS5aTgI+51AqP61a/S4BtrDqZ325JZdA6PcdLrN0bszJAVzvXn/H+Qd15Iv/zVm0f j4M2FaV1Ei9Kie+6bsDUa6NWN0pOHrzQDa9OBjOWP90lqLN/krDUutGZEdU9wJcgNGaU E9X71uCja/Hera3AwG7yWwHZgrlqtDUGMRKjrzzSRv6Mgnm+dL9xzAECNyijZTzYAo0s URxLfQQamVz07v6hcyaql266V8+Yag/agZ7VmPq0bvGUnws92TlxqZ6+kr8opRqxcXWk Pdkw== X-Gm-Message-State: AOAM531tJFbdDw1OahC1VxcNJhUhFobN1YxVfuLxta23ft8gi1L1w16s VO0OBcuUr0AO+E42MaXUKYA/qe7iY9IDYA== X-Received: by 2002:a37:a4c6:: with SMTP id n189mr4098837qke.484.1593199473287; Fri, 26 Jun 2020 12:24:33 -0700 (PDT) Received: from lca.pw (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id p7sm8247131qki.61.2020.06.26.12.24.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 12:24:32 -0700 (PDT) Date: Fri, 26 Jun 2020 15:24:26 -0400 From: Qian Cai To: Dave Hansen Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, ben.widawsky@intel.com, alex.shi@linux.alibaba.com, dwagner@suse.de, tobin@kernel.org, cl@linux.com, akpm@linux-foundation.org, stable@kernel.org Subject: Re: [PATCH] mm/vmscan: restore zone_reclaim_mode ABI Message-ID: <20200626192426.GA4329@lca.pw> References: <20200626003459.D8E015CA@viggo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200626003459.D8E015CA@viggo.jf.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 25, 2020 at 05:34:59PM -0700, Dave Hansen wrote: > > From: Dave Hansen > > I went to go add a new RECLAIM_* mode for the zone_reclaim_mode > sysctl. Like a good kernel developer, I also went to go update the > documentation. I noticed that the bits in the documentation didn't > match the bits in the #defines. > > The VM evidently stopped caring about RECLAIM_ZONE at some point (or > never cared) and the #define itself was later removed as a cleanup. > Those things by themselves are fine. > > But, the _other_ bit locations also got changed. That's not OK because > the bit values are documented to mean one specific thing and users > surely rely on them meaning that one thing and not changing from > kernel to kernel. The end result is that if someone had a script > that did: > > sysctl vm.zone_reclaim_mode=1 > > That script went from doing nothing to writing out pages during > node reclaim after the commit in question. That's not great. > > Put the bits back the way they were and add a comment so something > like this is a bit harder to do again. Update the documentation to > make it clear that the first bit is ignored. > > Signed-off-by: Dave Hansen > Fixes: commit 648b5cf368e0 ("mm/vmscan: remove unused RECLAIM_OFF/RECLAIM_ZONE") This is a wrong format.