Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp699549pxv; Thu, 22 Jul 2021 10:01:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMv7qaNVN9RGITrOCP+8/ay6tws8OcpW7cVb5Y86egsuuIv3Jth0ZJ/pTAyz/Lk0COLrDa X-Received: by 2002:a05:6402:27d2:: with SMTP id c18mr692680ede.261.1626973302842; Thu, 22 Jul 2021 10:01:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626973302; cv=none; d=google.com; s=arc-20160816; b=kcAY7j26Fgw+UAPNoA55fLTab264lLijOHYUoIkyfaXCcEtmg4Lv8tAMQH4W9w5yuD io6mu0xaksZEnczQo5DQtaKKKfYF1A828BqNLQHx5oAl1DX5YrBPHRKPV9mf6keN9xSF jQv56b2oa84kMLtkP0UKaa9JSYTTDAEVgW3A9zMurN3q65opynU19STrZ08skPOXLJOa 9yPDmmCE6wEuJql6z5Vd77cigzDbRIGYwims9+B/YUcnzux9Yr+w20UH/Y7sJ+FgPyNc jH9tlrgBcxEmAnsBoBXCRUioLdQR9hTLX9RqFJMhV22tDoe0t105+WYwdWw//5/jdrho VCzQ== 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=fY1GU33NdlDCFwWGiRlEzVzzUv/E61mi0egIUEebmpo=; b=HGGwSWAG6GG2f0aU/8QRV3YIcGslYQThaySPBdJajiXQ4yA5LyMsUDcIOsktRD7VyP iOOfQXGtGkPH09GC4ycC2+T2EP5L2dw3ookGtoW0LfFwAm+IHeb8ULyw9Or/bRjt0WeS LUz6jeih44vHKYa1NJJy8rK+aqjcgm+qI6BndKciICIudhDEM4zG3JLNgckcgoiRmwkr m0ZMLpTFCR9KsyCEmJDg8Ir7whAEqu67nOdnr0uQa43yeQpD8VYU3i4pdGE/fawhs7Az IpM5lEbyEhqIWfm8fAS+SlO+N5WvLaczalU4Ldrlsum68hzhhW/ZcnZrnKEynzBQRYco iyww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=F5eMUIgN; 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 z21si21334999eji.707.2021.07.22.10.01.12; Thu, 22 Jul 2021 10:01:42 -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=F5eMUIgN; 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 S235077AbhGVQSd (ORCPT + 99 others); Thu, 22 Jul 2021 12:18:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235123AbhGVQRR (ORCPT ); Thu, 22 Jul 2021 12:17:17 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 061E5C0617A1; Thu, 22 Jul 2021 09:57:52 -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=fY1GU33NdlDCFwWGiRlEzVzzUv/E61mi0egIUEebmpo=; b=F5eMUIgNSgTJAoMmkWgV7WEaGk SyNUL6h+5z5WIgAKB5tCR1lkqGE3SxjCuK5WMPc8OMeVu+eRh6kAWuAa9nw9xl+4hE1AG6ioLCA3E nsKtOKkZ0LrfrTD3baDwTn9nGp0WrYzQ6fmaUjEBIX7+Y63IU2TbEdFB6iT6hXmBUq+1s0Fw9ig5B nGN36cEvC0sYRIGb9q0I80Y3l2Fx0ZCabOKq4WDAzLvquEO8JwXD4UmOQsp1f8aMGNWyeGtF/g+iD 03p2q4UXX9Pr84W+9WN75zicYa5nvTQEPOxczUrjSBFOTt1MixsMTewOzxUvEDbPmCMIPW8zWvoqP DNYGIM0g==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6c0Q-00AUeF-Ty; Thu, 22 Jul 2021 16:57:16 +0000 Date: Thu, 22 Jul 2021 17:57:06 +0100 From: Matthew Wilcox To: Christoph Hellwig Cc: "Darrick J. Wong" , Gao Xiang , linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, LKML , Andreas Gruenbacher Subject: Re: [PATCH v6] iomap: support tail packing inline read Message-ID: References: <20210722031729.51628-1-hsiangkao@linux.alibaba.com> <20210722053947.GA28594@lst.de> <20210722165109.GD8639@magnolia> <20210722165342.GA11435@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210722165342.GA11435@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 22, 2021 at 06:53:42PM +0200, Christoph Hellwig wrote: > On Thu, Jul 22, 2021 at 09:51:09AM -0700, Darrick J. Wong wrote: > > The commit message is a little misleading -- this adds support for > > inline data pages at nonzero (but page-aligned) file offsets, not file > > offsets into the page itself. I suggest: > > It actually adds both. pos is the offset into the file. If you want to add support for both, then you need to call iomap_set_range_uptodate() instead of SetPageUptodate(). Otherwise, you can set the page uptodate before submitting the bio for the first half of the page.