Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5096251pxv; Tue, 20 Jul 2021 19:31:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoRgqKMT6EpOrOQ3rudnN7cFVGOcXrE7oDuOfFExDzXcXgh97OoLTuo3H2vBOdxcromYn3 X-Received: by 2002:a17:906:af91:: with SMTP id mj17mr36443799ejb.76.1626834667421; Tue, 20 Jul 2021 19:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626834667; cv=none; d=google.com; s=arc-20160816; b=n0p7Qi0F7ndsfTAGm10eeBciuq11PkSTVsYmfSNKp+O+nAfvSktIDJGTufsD/HXmVP cRFeAb+TlK+dbgWFbhejUNIlq3m6ucH/RPbWRzZH+4PL2e16n80OQdRKExvS4Aq97wkC 4msg4dx9tzsxh8WtjOWx5Xf0aA4cSowwgmcuVrrjSaqIdoAKHiDKz/L6d2msK83QjCW3 He0ANnJhggOtNJ/W7fWAw6gA5+YAxsxsF5Va5X7aAaPNzVLbF2IqFB+coOfU4HiaV9LE 1hscs3to1Xxd5vdf/A+lTrKRORavQGxjryE9G5eYIjvrUj4dS1cDLjdiHe9nKAgCNsNc PJZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=IMEA7XUipMCPe6h8ouCsvI5CYO5wKR/xBeSj7gVT1/8=; b=dwqUCQbbP4AbAZ8ud0A9CzbfeUu3mWWfZ7jMZvhYYrY/eTSahKzZyqy/hjXid+ERZx dX3G6paOLQQKMyuuH6GOh9qW7eMJmIocYqLf8mHUNPntSO5x7WSvXV+HBu3nKoT02lPR B8uozvLbxVJiJPwjtI1dxxRS4X8bsD1FqLZUQZiSLI2c//cfOuNN0Tc1EzFd1xrn3kWF zPgO+xx4DP+R393ssyBvxLUXZ7X8b4bfmkPVAr4T2AdWeFLcodUo1FFklwCWzmVp4qN9 FT0mmC5DD6dXT+Rur0HPWMsSGR8Q37JZXIagEJcHzrdWFfZ9ROVFqL+jHYs0fB7GSD5o NA2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZL2tFxwr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 1si19763425eje.240.2021.07.20.19.30.43; Tue, 20 Jul 2021 19:31:07 -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=@gmail.com header.s=20161025 header.b=ZL2tFxwr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231178AbhGUBq1 (ORCPT + 99 others); Tue, 20 Jul 2021 21:46:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbhGUBqY (ORCPT ); Tue, 20 Jul 2021 21:46:24 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1923FC061574; Tue, 20 Jul 2021 19:27:02 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id a12so931870lfb.7; Tue, 20 Jul 2021 19:27:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=IMEA7XUipMCPe6h8ouCsvI5CYO5wKR/xBeSj7gVT1/8=; b=ZL2tFxwrvAaDcgkunbrl2DXK4XIAXlxgvsjOXndmxdfQ1aP/4Oi8plfR3O0VsRQxf0 Kj/IAHQTP8GgfPGfGebET4AOzmA/PyrMGb0D2skqhIVN8ZGr4m7y7dt9dY0HJ1YvZma+ Hhly9/7QgO4cZ3IYYU0q3ebArfbUXGkcF1T+IssQW79jiLOkRyIDT9kS5wSXpUKIcLOP Byz6t0ncf330RJcnL5OoaL7Om/VfFJtU0KXn+O0cZaIzkieo4LWeopnRmZMEB6jodKSn iu3uwpNM8RQPwuKkfXg1+0rjQnsUlkA4190PRkHwObJXyUh2DsNWgGSBwbB+MjlFwoBC 06vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=IMEA7XUipMCPe6h8ouCsvI5CYO5wKR/xBeSj7gVT1/8=; b=V1dzQlS+OukHfmuQd1JN2gulz7b9maORxqrBjESq3KAtOxftFSf90ZvAx9I6pJykU0 uDVvtYg8b6YPQOMtePmU1fo2skDmT/Gf9aDfVDk/n0AAZYLvBMjNuZeiZkutqDHtTekC 9HF9OIiO1GzJgGEHXmlMjnlVwChnzm9AM9UPsWJIDM0L5l7giP+kbETlDRUglktUWYm9 HUq269IfDnxTZwNa659th4/3AAgzl61VJ3V9oEbc7JJgQd38rLI9sm9D3AkTmBwvgrxu p6tJOXzX7+fKnx4qU3K+9Jvylk/7ne6KTtvoBN9p16Bo9U3IeRTyVxT8Zd5UqPIxG2F8 WoEQ== X-Gm-Message-State: AOAM530ATuAULtb5IG1Fp8mMcIXaVHp17xwgmrDG9/Ppw2zE/M0unc/P hXw8+mdWjoMu3O6nUfn7hyMqJXLFLjgg4C7v9ls= X-Received: by 2002:ac2:5482:: with SMTP id t2mr24222408lfk.135.1626834420374; Tue, 20 Jul 2021 19:27:00 -0700 (PDT) MIME-Version: 1.0 References: <20210720133554.44058-1-hsiangkao@linux.alibaba.com> <20210720204224.GK23236@magnolia> <20210721001720.GS22357@magnolia> In-Reply-To: From: =?UTF-8?Q?Andreas_Gr=C3=BCnbacher?= Date: Wed, 21 Jul 2021 04:26:47 +0200 Message-ID: Subject: Re: [PATCH v4] iomap: support tail packing inline read To: "Darrick J. Wong" , Matthew Wilcox , linux-erofs@lists.ozlabs.org, Linux FS-devel Mailing List , LKML , Christoph Hellwig , Andreas Gruenbacher Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mi., 21. Juli 2021 um 02:33 Uhr schrieb Gao Xiang : > > And since you can only kmap one page at a time, an inline read grabs the > > first part of the data in "page one" and then we have to call > > iomap_begin a second time get a new address so that we can read the rest > > from "page two"? > > Nope, currently EROFS inline data won't cross page like this. > > But in principle, yes, I don't want to limit it to the current > EROFS or gfs2 usage. I think we could make this iomap function > more generally (I mean, I'd like to make the INLINE extent > functionity as general as possible, Nono. Can we please limit this patch what we actually need right now, and worry about extending it later? > my v1 original approach > in principle can support any inline extent in the middle of > file rather than just tail blocks, but zeroing out post-EOF > needs another iteration) and I don't see it add more code and > complexity. Thanks, Andreas