Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp976668ybz; Wed, 15 Apr 2020 23:56:56 -0700 (PDT) X-Google-Smtp-Source: APiQypIl46Vl4DSxdJqd/lLTyOKsQmYlQ4nvZSf+tuaEigXbFMXsPIoV5Hts3Du2rj31IXQ6PJNZ X-Received: by 2002:a50:9f4a:: with SMTP id b68mr13581967edf.108.1587020216834; Wed, 15 Apr 2020 23:56:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587020216; cv=none; d=google.com; s=arc-20160816; b=shkPRLantTlhRabClRmKAQmhQiZCOXkoLQszsCnD7aDOcliX/MbpVV1i87rmV8Gy6N z0KBxcZAZYpZ1zHe30TjMsEoOn6H+uSlVhFFSTZPxyTraKrCEVWuJYiM+j2YpOVhl3E2 mpgLDaKIdBuwQ/A063zPaucmvTcRcWrrtIkCvlHR1cyoe5NmCkQgOy2Nj+SZFI4nfvzM wE7N1hOQedFU+NUNfV52BA2ijUq9YHqvL4vZyMw56OCTB4aFlC29v5PMBfLS0O8/sclJ PiOdTJzY8RcFjZxYdSCcVhM1S15ilkuPIxsS7pJU2KxkDBfpm2q5r8BTLgj4wYAbjBNv BHAg== 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=C5xKJW9GVLUaEwmsGcgxx38194ESNJpidrJ6svW+S14=; b=gg95nMmH2907dc5wlyKxv+n6B9mnECDyDT4s9lA+A6j7PiUOP126fdvFWb3PATbz5M 0a2vDuivZENmBYpCkWl7IT2WJorBPPP0+O4RdAZYV9KrJwnfCG7pfVZhAmQEj8jyK8ko 8s4jGVelM+ofPkCgRi0jMKXn5jZvqpYRpjI9SXvCZ5fYh5KPOBVDxmRrai8jpr8Tfykv E7LAH0vK07BXmuAI5qd38xqrqx6XAUPJWz3mP33OM9+VKdE492vhfSlVRiBUWMVcznc0 BSDA4fv9HCHWAB4mpXZX5Qq6Z+byhIlBW6swdMI1o7eM743+/SO1g0u7YWIhsF/7dCgZ 66NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=nNqwKXMc; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 e14si12022852edk.310.2020.04.15.23.56.31; Wed, 15 Apr 2020 23:56:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=nNqwKXMc; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437379AbgDPG4Z (ORCPT + 99 others); Thu, 16 Apr 2020 02:56:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2436700AbgDPG4W (ORCPT ); Thu, 16 Apr 2020 02:56:22 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 628CCC061A0C; Wed, 15 Apr 2020 23:56:22 -0700 (PDT) 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=C5xKJW9GVLUaEwmsGcgxx38194ESNJpidrJ6svW+S14=; b=nNqwKXMcvO1nCQPM6W3MouyrS5 MCb8h0GleAEjJan4ZUms7JqwTlQvsvnhav/+i5elBTStKBOPlYONP0aFn4xujiGrbUhMSJr1yY6xA WFDV0IVuJgs3xulDUdJz/FW1fWMXoeYm7/bsUi7qFJgG8EblogzGCSwk7vRCYAvHFdRjouKDclHZX qS0kd77pONKQKEJxxj9q7lfpY9lFJ5IWtC9dgCaAwruR+Zi9o2IJABHqcuD1oWO5hLMM/sSEjAu4y Hlb6UcyGt8fXE/zq6GExtd5DiddbTh3FtQRFSJw9XMCCfW6brizWGSy6JDytp6jvaFZFIZSE67LaE fvV0qhYQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jOyRe-0003t8-6k; Thu, 16 Apr 2020 06:56:18 +0000 Date: Wed, 15 Apr 2020 23:56:18 -0700 From: Christoph Hellwig To: NeilBrown Cc: Trond Myklebust , "Anna.Schumaker@Netapp.com" , Andrew Morton , Jan Kara , Michal Hocko , linux-mm@kvack.org, linux-nfs@vger.kernel.org, LKML Subject: Re: [PATCH 2/2 V3] MM: Discard NR_UNSTABLE_NFS, use NR_WRITEBACK instead. Message-ID: <20200416065618.GB1092@infradead.org> References: <87tv2b7q72.fsf@notabene.neil.brown.name> <87v9miydai.fsf@notabene.neil.brown.name> <87ftdgw58w.fsf@notabene.neil.brown.name> <87wo6gs26e.fsf@notabene.neil.brown.name> <87r1wos23k.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r1wos23k.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 16, 2020 at 10:31:27AM +1000, NeilBrown wrote: > return global_node_page_state(NR_FILE_DIRTY) + > - global_node_page_state(NR_UNSTABLE_NFS) + > get_nr_dirty_inodes(); Nit: this could a single line now: return global_node_page_state(NR_FILE_DIRTY) + get_nr_dirty_inodes(); > + /* This page is really still in write-back - just that the > + * writeback is happening on the server now. > + */ This needs to switch to the canonical kernel comment style. > + if (off == NR_VMSTAT_ITEMS - 1) { > + /* We've come to the end - add any deprecated counters > + * to avoid breaking userspace which might depend on > + * them being present. > + */ Same here. Otherwise looks good: Reviewed-by: Christoph Hellwig