Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3802587pxk; Tue, 29 Sep 2020 06:42:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAovFS2l9WH6z0x4ZP4EuLJ8cdxRcL9g4dZqSZk7zsxznPg4jK5NO9HG5PtZHYrXtMnC1l X-Received: by 2002:a50:cf0b:: with SMTP id c11mr3220761edk.87.1601386964398; Tue, 29 Sep 2020 06:42:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601386964; cv=none; d=google.com; s=arc-20160816; b=JUNHHE4GEJpxmgSoSPB6qKR5fpbcFkB1EBoLdOmQ0I2+yB6Mrl1oVnGKxid3TiWTnV 8mAwi61gjeUGSxyvdw0+SYTE5t9OGq1RTonCan/ynpRq5Wger9EEphLque1pN+YaELj8 oKCVb1plWojk5OmydtGig2H2I/gsqwdYXj1vzlCmBVZYTUhWR04htqpAFRoJtnoVc1AD mZCELXtBVD2hJj8586P0DVqC2IFUdeqvdSmnqkGf4JmugRiqGAB5mfKkO7iI2TAxnlu2 as8ErS06apGBevZFn2aT66Z8lzN7JI6K5MTm74nlyvRy5Qoh/TxyAa83vNjoKD0VNNRK hYtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JVdM3afc/YXIjdB8I/oCcRIHSX+4wscc850PEE+wd4k=; b=zocpJ85BK6dkkYynFH344tkGGVlTnWoN7ZPcqq0k8U9wbUNDdCz8TincZzudrl1c/B EWkYk9i+M37LzqcVY/zVajDsPr0mgiv2ATgFoQhNfPbKpZUw5bwoggjr1XjES2F0DMIh uLWbJWQPLM7IiA2/X7owb9ybnPK+O6fApytqskHX/t5e95mETxIbiS2/DkDEqKGbTuBi 1QwpA/UQpvB8kfYrxamY2PgcFOZT+NTrx/6BRGtKOSieauxg8iYoKU7R1ibvEUkWB3xC g2bl76l9mpVIBdcuE9psOluuF8IAOGytAlul10ldDRA/2o6dWpXn7t6IRtFwigXruF/8 ByNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="Rs6r/RNx"; 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 i9si2707484eds.610.2020.09.29.06.42.21; Tue, 29 Sep 2020 06:42:44 -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=@infradead.org header.s=casper.20170209 header.b="Rs6r/RNx"; 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 S1730300AbgI2NjX (ORCPT + 99 others); Tue, 29 Sep 2020 09:39:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729958AbgI2NjW (ORCPT ); Tue, 29 Sep 2020 09:39:22 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20AD3C0613D0 for ; Tue, 29 Sep 2020 06:39:22 -0700 (PDT) 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=JVdM3afc/YXIjdB8I/oCcRIHSX+4wscc850PEE+wd4k=; b=Rs6r/RNxuUjCouIoyH1LgIFHig ZTsO/l01bEIOP/met2gMeh1XazUKKhGCBp+i68Dkbp7Ly9EChLkEQSuchYSoJrYUQQIjdRWJqPQ6l ZXsLtL9t5Bm96uttlO7747k2sz47KKux/V+2BjsvOGk7kXw3J6vBab1uwPhMufU90Dy6f9IaFQiBV 7nHPha5AX4B9vUKBvMY88fyAm1zzjbSNlRZBt45AVxJ/WBqpYAhV2AadCHo1r2aHTWJtoydUVOdd9 vfmHZpNf8857K3QZ+SW5hXeM7WmYdJ3X/P/+ljwT1SOzDQs4utR2GQt/1G9fkT5pDp+rrM4oOrXFh XgpoCeJQ==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNFqY-0001ow-7D; Tue, 29 Sep 2020 13:39:10 +0000 Date: Tue, 29 Sep 2020 14:39:10 +0100 From: Matthew Wilcox To: Jan Kara Cc: linux-mm@kvack.org, Andrew Morton , Hugh Dickins , William Kucharski , Johannes Weiner , Yang Shi , Dave Chinner , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 04/12] mm/filemap: Add mapping_seek_hole_data Message-ID: <20200929133910.GD20115@casper.infradead.org> References: <20200914130042.11442-1-willy@infradead.org> <20200914130042.11442-5-willy@infradead.org> <20200929084653.GC10896@quack2.suse.cz> <20200929124251.GB20115@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200929124251.GB20115@casper.infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 29, 2020 at 01:42:51PM +0100, Matthew Wilcox wrote: > On Tue, Sep 29, 2020 at 10:46:53AM +0200, Jan Kara wrote: > > Also for shmem you've dropped the PageUptodate check which I'm not sure is > > safe? > > That was unintentional. I did run xfstests against this patch (just did > it again ... it passes), so I suspect it doesn't create a !Uptodate page. > I'll see if I can enhance the existing xfstests to catch this case. Ah. Diff'ing the output between before and after ... -Test skipped as fs doesn't support unwritten extents. +07.01 SEEK_HOLE expected 0 or 45056, got 0. succ +07.02 SEEK_HOLE expected 1 or 45056, got 1. succ +07.03 SEEK_DATA expected 40960 or 40960, got 40960. succ +07.04 SEEK_DATA expected 40960 or 40960, got 40960. succ so, er, the tests didn't report that I'd broken it because it was just an automatically skipped test. Not sure what to do about that; obviously we should skip tests that aren't applicable, but it'd be nice to see a warning that tmpfs used to support this and now doesn't.