Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1833655ybb; Thu, 2 Apr 2020 08:11:04 -0700 (PDT) X-Google-Smtp-Source: APiQypKO6hq3+PsD9p6goAb9JG+keIaPSoRovUC/+4UuPGJaijkluxxx0fYCxc/M63YPBgd57HsS X-Received: by 2002:aca:efd4:: with SMTP id n203mr2636138oih.159.1585840264718; Thu, 02 Apr 2020 08:11:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585840264; cv=none; d=google.com; s=arc-20160816; b=yk8aBJgQOX75HsQVBAqa9Z04OTUzXoMwFdp5l5u+zIvGr7FQ0iCtChnMh1plCykO08 pjO0GBHm6QzaNJvQPtWZ9T+3FDFwFUufcq1tl7ph5q2vqOitmGlM/reK0m7l4kTocgnN 1qh9aP59PjisDXnaP+FSWAEmBfeB+OuZZpqrkXfz9kOjTigmNLb88wo/WP124HIbZ1wj F3wU2RWkdw3HUsoXkykzyWcbbMFagLnkE+QVbytAhfAtoVC29I6VALtcuUPMp0lrDhdq 0/d9T5c3bxOh+mu4S499ohTwdJ2JnZ7Kkrly6eNSWsH7JRKx/fpd/8H/JbqxN1jiV5hs pEDg== 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=+Mc5VxCSGR+ubhm7i2F7LBlTvaw0U2gf84ze2KV8ksk=; b=LUOA8N5MZodib6MngfsR/0j9sRmT3APGfuYZ7/mtgEQEbv5Jmj2zM4bOAHjtm718jX ljwP4tdygBJAON7wTcJXAkF3NkiIQdyCC9uzrtjY4FzJClYL0aXbv2jdS5A5WpXxXryQ X6cSeQD5Fr9WIur85yxtFk2/ZLLH1HT8ZXFaHPIDVhk7LCkkAp6nVmVw00H5w0qO1ldR nTY8CERZfbIvW3LDgtnpDpmVFIPgKGU/xQfKSLEbdWH0PymPKL4b+an1x58o3r6CkXBm B08BpgJTHT8YagpZaFXgS5jclP4RUxBoW8rHzwOR93lJiS0GZTFTBOTKi1m95OY1bI1E OTBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jqLjXF3t; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-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 z13si2496772oto.214.2020.04.02.08.10.44; Thu, 02 Apr 2020 08:11:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jqLjXF3t; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388984AbgDBPKP (ORCPT + 99 others); Thu, 2 Apr 2020 11:10:15 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:50006 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388960AbgDBPKP (ORCPT ); Thu, 2 Apr 2020 11:10:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=+Mc5VxCSGR+ubhm7i2F7LBlTvaw0U2gf84ze2KV8ksk=; b=jqLjXF3tryBZRU1qNEFnLPACgH JJUS86PBhx7pCgipML92RZPuTpPYE1wBAQItbKLYVQ0nwO/Qc9By0XjkVONtwu1tOK801b/87Zs6b kHsD3IooG1pb8lKmjpPnYrmtokCzK5dVMKIT5FShuZTQwSqSNqz4Tl4bkR7X9PyHvrZa5Rz3upoCx V2zWVU3DpZ3KX2wOzoazENtezwpU4rtUoP8Sjb/crJe2+JihHbb1cxFN+h9XFd7uuTPbJXJXa/Bbq jsiNdY/f51g0+/KSQ7ibDrmznxRk6dPDPXGs0tJ/fXqkSX+LSgU3O0fpJHoDNH+exeH3uv2w5hI3D v7QnHmuA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jK1Tt-0000xm-N8; Thu, 02 Apr 2020 15:10:09 +0000 Date: Thu, 2 Apr 2020 08:10:09 -0700 From: Christoph Hellwig To: NeilBrown Cc: Trond Myklebust , "Anna.Schumaker@Netapp.com" , Andrew Morton , Jan Kara , linux-mm@kvack.org, linux-nfs@vger.kernel.org, LKML Subject: Re: [PATCH 2/2] Deprecate NR_UNSTABLE_NFS, use NR_WRITEBACK Message-ID: <20200402151009.GA14130@infradead.org> References: <87tv2b7q72.fsf@notabene.neil.brown.name> <87v9miydai.fsf@notabene.neil.brown.name> <87sghmyd8v.fsf@notabene.neil.brown.name> <87pncqyd7k.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pncqyd7k.fsf@notabene.neil.brown.name> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, Apr 02, 2020 at 10:54:07AM +1100, NeilBrown wrote: > > After an NFS page has been written it is considered "unstable" until a > COMMIT request succeeds. If the COMMIT fails, the page will be > re-written. > > These "unstable" pages are currently accounted as "reclaimable", > either in WB_RECLAIMABLE, or in NR_UNSTABLE_NFS which is included in a > 'reclaimable' count. This might have made sense when sending the COMMIT > required a separate action by the VFS/MM (e.g. releasepage() used to > send a COMMIT). However now that all writes generated by ->writepages() > will automatically be followed by a COMMIT, it makes more sense to > treat them as writeback pages. > > So this page deprecates NR_UNSTABLE_NFS and accounts unstable pages in > NR_WRITEBACK and WB_WRITEBACK. Please remove it entirely if it isn't used any more.