From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8FBFC433DF for ; Thu, 8 Oct 2020 19:33:11 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D552922201 for ; Thu, 8 Oct 2020 19:33:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="WtKqtTYF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D552922201 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 01A93900002; Thu, 8 Oct 2020 15:33:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EEE506B005D; Thu, 8 Oct 2020 15:33:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DAC93900002; Thu, 8 Oct 2020 15:33:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0155.hostedemail.com [216.40.44.155]) by kanga.kvack.org (Postfix) with ESMTP id A640A6B005C for ; Thu, 8 Oct 2020 15:33:09 -0400 (EDT) Received: from smtpin25.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 3D9231EF2 for ; Thu, 8 Oct 2020 19:33:09 +0000 (UTC) X-FDA: 77349756498.25.team42_4e1009b271da Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin25.hostedemail.com (Postfix) with ESMTP id BCA681804E3B5 for ; Thu, 8 Oct 2020 19:33:06 +0000 (UTC) X-HE-Tag: team42_4e1009b271da X-Filterd-Recvd-Size: 3182 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf13.hostedemail.com (Postfix) with ESMTP for ; Thu, 8 Oct 2020 19:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=BHYNWcWHIFZvVZFOrN5msKH7zebNjbiD4DhvwYAYv8g=; b=WtKqtTYFnWStgYMZ2Ii4ZkWL/J 5VcSFFsPi/0uUCZ3Bgy/wKp/PsALEneWOFem2MTRPmtdVymmgotP68cHfrWos4OuKduHZzIl2zIJQ BOBnSQ4xy9IoePSftqZq5TxYBwXQMESJQV2wHwivsBCp2EbN9chVJcBPnDXfGN5RM6WDESexMEZxb TXsk60h68uXyRkqnspvPQW+qo7o1BntcHL6TQunHEk3ssVMKe8dNpqK/lrfAp+s88E4IvchIrBr9H YiMRHY+ZMGDBLQSMtL41gw2gCHd2dq1pk93L5VH8nbEUUgkGbIv9QpJSLfgsmkK8HPkgcMOyHVNw0 ovZZsPHw==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQbev-0007bI-Rb; Thu, 08 Oct 2020 19:33:01 +0000 Date: Thu, 8 Oct 2020 20:33:01 +0100 From: Matthew Wilcox To: "Verma, Vishal L" Cc: "linux-mm@kvack.org" , "linux-fsdevel@vger.kernel.org" , "linux-nvdimm@lists.01.org" Subject: Re: [PATCH 0/4] Remove nrexceptional tracking Message-ID: <20201008193301.GN20115@casper.infradead.org> References: <20200804161755.10100-1-willy@infradead.org> <898e058f12c7340703804ed9d05df5ead9ecb50d.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: On Thu, Aug 06, 2020 at 08:16:02PM +0000, Verma, Vishal L wrote: > On Thu, 2020-08-06 at 19:44 +0000, Verma, Vishal L wrote: > > > > > > I'm running xfstests on this patchset right now. If one of the DAX > > > people could try it out, that'd be fantastic. > > > > > > Matthew Wilcox (Oracle) (4): > > > mm: Introduce and use page_cache_empty > > > mm: Stop accounting shadow entries > > > dax: Account DAX entries as nrpages > > > mm: Remove nrexceptional from inode > > > > Hi Matthew, > > > > I applied these on top of 5.8 and ran them through the nvdimm unit test > > suite, and saw some test failures. The first failing test signature is: > > > > + umount test_dax_mnt > > ./dax-ext4.sh: line 62: 15749 Segmentation fault umount $MNT > > FAIL dax-ext4.sh (exit status: 139) Thanks. Fixed: +++ b/fs/dax.c @@ -644,7 +644,7 @@ static int __dax_invalidate_entry(struct address_space *mapping, goto out; dax_disassociate_entry(entry, mapping, trunc); xas_store(&xas, NULL); - mapping->nrpages -= dax_entry_order(entry); + mapping->nrpages -= 1UL << dax_entry_order(entry); ret = 1; out: put_unlocked_entry(&xas, entry); Updated git tree at https://git.infradead.org/users/willy/pagecache.git/ It survives an xfstests run on an fsdax namespace which supports 2MB pages.