Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4469410pxv; Tue, 27 Jul 2021 08:07:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztA9Eh5FyycgSSorbVQyWzTC7vG3FWxZd99HxOeIXfYAn6Q8nBhO8Lyj05bWWJQfPA7dmS X-Received: by 2002:a02:8529:: with SMTP id g38mr21486453jai.88.1627398421764; Tue, 27 Jul 2021 08:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627398421; cv=none; d=google.com; s=arc-20160816; b=Ui7FiyUvjq2Bh4qt6cI8umdX+ahasFwkfJz52cDx3lgbf/mTVCuzNP7XR+Y+juPkyQ Z8tnkqItHLo353+txKqia28bY7JcepfK4IHPq5V5g87lM28C3AbWEourhM4QTXnJIHMT 0VS3izs/0I3RBCzUtJ3+C3TtHL3I3/lku0FOrgQ8mv419ciGVavYMi4fJ3MhChPr3jqB j7GRT6O43I4D8k2LbPU1vvSN29qeDld4SzzbVUuRlAzv+s9NpQZbDtEfpSEWTuayzPt0 TcSJko1b1AS14LhRO4ctjQM1NxSiY5ris+1d9TZfFdjGuivxz3IyA2LI3S+HpaAwluNV 4/ew== 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:mail-followup-to:message-id:subject:cc:to:from:date; bh=4LSMA6IAz4mGwcPD/fHj22LO/pPoX6a8HCqeiM7mMGo=; b=rfp8QDGvD9P8+3ceOz8ICxNwn7ksnVPwaG22nCF4PsrRWem7oyEN7Ku4euK/2cw32p K8ejbjOB/PTXS85NSpfYIgni6k0SxKhSks+4H8sKlNWohzRd5cGQmzmHB7we1O1Uvc4j HgFThu8KRopQf5JwBqXeMcKBfI6jaJ85fgEgtHMM/xAP9+PErxpIrKi+oscNzPXENNHN /W00cggGl1uQJTj6svn9sTYQa0EgSZIUD6YL2ekpXC0agWnN6JMIINwBZlGPGlEPZJdl sh5jRdky10RQ7DyACVhyclv7Z5Pzccex1XOed4NUvh11B9/EX/ftjxi8SdKFcWacMwxH ZjnA== 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 w11si3454010jal.126.2021.07.27.08.06.50; Tue, 27 Jul 2021 08:07:01 -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 S232664AbhG0PEl (ORCPT + 99 others); Tue, 27 Jul 2021 11:04:41 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:43692 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231552AbhG0PEk (ORCPT ); Tue, 27 Jul 2021 11:04:40 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0UhAAkxc_1627398276; Received: from B-P7TQMD6M-0146.local(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0UhAAkxc_1627398276) by smtp.aliyun-inc.com(127.0.0.1); Tue, 27 Jul 2021 23:04:38 +0800 Date: Tue, 27 Jul 2021 23:04:36 +0800 From: Gao Xiang To: Matthew Wilcox , "Darrick J . Wong" Cc: dsterba@suse.cz, Christoph Hellwig , Andreas Gruenbacher , Huang Jianan , linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Andreas Gruenbacher Subject: Re: [PATCH v7] iomap: make inline data support more flexible Message-ID: Mail-Followup-To: Matthew Wilcox , "Darrick J . Wong" , dsterba@suse.cz, Christoph Hellwig , Andreas Gruenbacher , Huang Jianan , linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Andreas Gruenbacher References: <20210723174131.180813-1-hsiangkao@linux.alibaba.com> <20210725221639.426565-1-agruenba@redhat.com> <20210726110611.459173-1-agruenba@redhat.com> <20210726121702.GA528@lst.de> <20210727082042.GI5047@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 27, 2021 at 02:35:46PM +0100, Matthew Wilcox wrote: > On Tue, Jul 27, 2021 at 10:20:42AM +0200, David Sterba wrote: > > On Mon, Jul 26, 2021 at 02:17:02PM +0200, Christoph Hellwig wrote: > > > > Subject: iomap: Support tail packing > > > > > > I can't say I like this "tail packing" language here when we have the > > > perfectly fine inline wording. Same for various comments in the actual > > > code. > > > > Yes please, don't call it tail-packing when it's an inline extent, we'll > > use that for btrfs eventually and conflating the two terms has been > > cofusing users. Except reiserfs, no linux filesystem does tail-packing. > > Hmm ... I see what reiserfs does as packing tails of multiple files into > one block. What gfs2 (and ext4) do is inline data. Erofs packs the > tail of a single file into the same block as the inode. If I understand Plus each erofs block can have multiple inodes (thus multi-tail blocks) oo as long as the meta block itself can fit. No matter what it's called, it's a kind of inline data (I think inline means that data mixes with metadata according to [1]). I was called it tail-block inline initially... whatever. Hopefully, Darrick could update the v8 title if some concern here. [1] https://www.kernel.org/doc/Documentation/filesystems/fiemap.txt Thanks, Gao Xiang > what btrfs does correctly, it stores data in the btree. But (like > gfs2/ext4), it's only for the entire-file-is-small case, not for > its-just-ten-bytes-into-the-last-block case. > > So what would you call what erofs is doing if not tail-packing? > Wikipedia calls it https://en.wikipedia.org/wiki/Block_suballocation > which doesn't quite fit. We need a phrase which means "this isn't > just for small files but for small tails of large files".