Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5108273pxv; Tue, 20 Jul 2021 19:57:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygDcRnc/5gtHUezqH0jtqIkHFmdeo+54uu+kQKIevNY4tAoNJZOjIIhqTqlUQN81GMv19c X-Received: by 2002:a17:906:4f05:: with SMTP id t5mr36374096eju.351.1626836229676; Tue, 20 Jul 2021 19:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626836229; cv=none; d=google.com; s=arc-20160816; b=WbzmWdPbtmF5kiQYegbvyRmoM8/0un9IK90cEScR0vbTC3FirvJCWpVzDSXZr89Yyj a0l6ICz4IfoJruQ7cEyxgyVD61OodSBKyhs3xFLK2ScLSK5vjYSbSsksTBFRYlR0XQeh HSJfUS02v9qxsUhz+9VtNALJkzZx6+QB3u8rtoW4AarSucvtJtWbOH5ejScbv3s0egFy fZcPXNz5ZLzzxGcxwkItpGC6c4kYL8s5/5HH+ww/pFVaQyrsmsTNJtQNahFf5Ey7ZaDE jgJSGJgsf4p64uSWX+pdk03HI11xU3ynqUJoFoPXTxrhJaHbULGJUc1DCOvJ6fdenE7R cnfg== 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-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=XBGu7g69MazfYlA10uJHUL/rmJgLgLPlwPHku2I/gbk=; b=lhko1FP3Vp02ZXWv+lTf0TaE6z+dp4Xacdpt66K+o1DVfHUA6txQJgVLQ2qYxH9hs4 ebJ8tiybrBKynB1Y7CjeNzu1Pw1WTNslJxirXm3CXJW/w1InqGF00MH6j2W3giQRrIyI lwE2Gdy4cJQ7ZhXrGFvt4+MJulR21WPCpofXedANbrB8jUnJl504JuWwnVj51wlFoRhV xM4xV3vccNTqM6QI6jYjMssTTcvuVuiRXxDd72Tezq+HoNp/bIbrjPj18sVicDxaWHu7 pg1FE10q2U8W6c5T37ggHxh1oPgfLKrxswZ7NMaKOynizlAEavd335uMI0mfGojas6lO xpPg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bq7si24098685ejb.576.2021.07.20.19.56.45; Tue, 20 Jul 2021 19:57:09 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231181AbhGUCNh (ORCPT + 99 others); Tue, 20 Jul 2021 22:13:37 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:44349 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbhGUCNf (ORCPT ); Tue, 20 Jul 2021 22:13:35 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R991e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0UgTuycl_1626836038; Received: from B-P7TQMD6M-0146.local(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0UgTuycl_1626836038) by smtp.aliyun-inc.com(127.0.0.1); Wed, 21 Jul 2021 10:53:59 +0800 Date: Wed, 21 Jul 2021 10:53:58 +0800 From: Gao Xiang To: Andreas =?utf-8?Q?Gr=C3=BCnbacher?= Cc: "Darrick J. Wong" , Matthew Wilcox , linux-erofs@lists.ozlabs.org, Linux FS-devel Mailing List , LKML , Christoph Hellwig Subject: Re: [PATCH v4] iomap: support tail packing inline read Message-ID: Mail-Followup-To: Andreas =?utf-8?Q?Gr=C3=BCnbacher?= , "Darrick J. Wong" , Matthew Wilcox , linux-erofs@lists.ozlabs.org, Linux FS-devel Mailing List , LKML , Christoph Hellwig References: <20210720133554.44058-1-hsiangkao@linux.alibaba.com> <20210720204224.GK23236@magnolia> <20210721001720.GS22357@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andreas, On Wed, Jul 21, 2021 at 04:26:47AM +0200, Andreas Grünbacher wrote: > 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? Can you elaborate what it will benefit us if we only support one tail block for iomap_read_inline_data()? (I mean it has similar LOC changes, similar implementation / complexity.) The only concern I think is if it causes gfs2 regression, so that is what I'd like to confirm. In contrast, I'd like to avoid iomap_write_begin() tail-packing because it's complex and no fs user interests in it for now. So I leave it untouched for now. Another concern I really like to convert EROFS to iomap is I'd like to support sub-page blocksize for EROFS after converting. I don't want to touch iomap inline code again like this since it interacts 2 directories thus cause too much coupling. Thanks, Gao Xiang > > > 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