From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28808C433F5 for ; Fri, 29 Oct 2021 05:52:11 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A075861040 for ; Fri, 29 Oct 2021 05:52:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A075861040 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=yulong.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HgWlq2qkWz2ypB for ; Fri, 29 Oct 2021 16:52:07 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=yulong.com (client-ip=113.96.223.78; helo=qq.com; envelope-from=huyue2@yulong.com; receiver=) Received: from qq.com (smtpbg413.qq.com [113.96.223.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HgWlh6f9dz2xXc for ; Fri, 29 Oct 2021 16:52:00 +1100 (AEDT) X-QQ-mid: bizesmtp32t1635486639t6g1enlz Received: from tj.ccdomain.com (unknown [218.94.48.178]) by esmtp6.qq.com (ESMTP) with id ; Fri, 29 Oct 2021 13:50:24 +0800 (CST) X-QQ-SSF: 01400000000000Z0Z000B00A0000000 X-QQ-FEAT: Mzskoac49OgAryltguf54KH8t16f3YIGLF+IJNZXPcwXU/qNj1yvx1wYFfzYp zSDob/pWeibO8iNhLOGWe1PCm3DL+jKn0uH5qN+EqDSMmISC5YTzHusX7o3bpDV60PdNLxx jT72/oaVHhVaHiiLkwckhYdmb+2Ks+Xrfu2jTiYGyMN5am2fsuSTmx7+8K8UvM97ag8D65h CbnwGON5SBY0xheXOnDLUlZwiZ8fFRQT9PfKIWRg+DgKzTIHGYfzamOwQjgOmZMR9ClJ9w2 sgVKL5FP1IwgwfVDoEhzoze4a73UdeqY+GiVs6v5Lhr84lv2+RWY6dIRHMNdKDB3TQHDuGd yYCqEvoFiVbAHxmSnXn9eghcuO6n6AxW8bx0BBv X-QQ-GoodBg: 2 From: Yue Hu To: linux-erofs@lists.ozlabs.org Subject: [RFC PATCH v2 0/2] erofs-utils: compression inline feature Date: Fri, 29 Oct 2021 13:49:29 +0800 Message-Id: X-Mailer: git-send-email 2.29.2.windows.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:yulong.com:qybgforeign:qybgforeign6 X-QQ-Bgrelay: 1 X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: zhangwen@yulong.com, Yue Hu , geshifei@yulong.com, shaojunjun@yulong.com Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" Now, we only support tail-end inline data for uncompressed file. We should also support it for compressed file to further decrease tail extent I/O and save more space. That is original intention as well from Xiang. Note that tail pcluster data is compressed by 4KB in this patch, which looks like inefficent. As Xiang mentioned, there is another better way to handle it. This patch is just using 4KB compression policy, we may improve it next. Thanks. Yue Hu (2): erofs-utils: support tail-packing inline compressed data erofs-utils: fuse: support tail-packing inline compressed data include/erofs/internal.h | 4 ++ include/erofs_fs.h | 10 ++- lib/compress.c | 76 ++++++++++++++++++----- lib/compressor.c | 9 +-- lib/decompress.c | 7 ++- lib/inode.c | 40 ++++++------ lib/zmap.c | 130 ++++++++++++++++++++++++++++++++++++--- mkfs/main.c | 6 ++ 8 files changed, 228 insertions(+), 54 deletions(-) -- 2.29.0