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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 383ADC433EF for ; Sat, 25 Dec 2021 07:06:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230258AbhLYHGg (ORCPT ); Sat, 25 Dec 2021 02:06:36 -0500 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:51126 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbhLYHGg (ORCPT ); Sat, 25 Dec 2021 02:06:36 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R891e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0V.hE4ok_1640415990; Received: from e18g06460.et15sqa.tbsite.net(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0V.hE4ok_1640415990) by smtp.aliyun-inc.com(127.0.0.1); Sat, 25 Dec 2021 15:06:34 +0800 From: Gao Xiang To: linux-erofs@lists.ozlabs.org, Chao Yu Cc: LKML , Yue Hu , Gao Xiang Subject: [PATCH v3 0/5] erofs: support tail-packing inline compressed data Date: Sat, 25 Dec 2021 15:06:21 +0800 Message-Id: <20211225070626.74080-1-hsiangkao@linux.alibaba.com> X-Mailer: git-send-email 2.24.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi folks, v2: https://lore.kernel.org/r/20211215094449.15162-1-huyue2@yulong.com mkfs v8: https://lore.kernel.org/r/20211224012316.42929-1-hsiangkao@linux.alibaba.com This is the 3rd version of tail-packing inline compressed data feature. It tries to inline the tail pcluster right after the inode metadata to save data I/O and storage space. Take Linux 5.10.87 source code as an example: linux-5.10.87 (erofs, uncompressed) 972570624 linux-5.10.87 (erofs, lz4hc,9 4k tailpacking) 391696384 linux-5.10.87 (erofs, lz4hc,9 8k tailpacking) 368807936 linux-5.10.87 (erofs, lz4hc,9 16k tailpacking) 345649152 linux-5.10.87 (erofs, lz4hc,9 4k vanilla) 416079872 linux-5.10.87 (erofs, lz4hc,9 8k vanilla) 395493376 linux-5.10.87 (erofs, lz4hc,9 16k vanilla) 383213568 Thanks, Gao Xiang changes since v2: - properly split patches; - some code cleanup. Gao Xiang (3): erofs: tidy up z_erofs_lz4_decompress erofs: introduce z_erofs_fixup_insize erofs: support unaligned data decompression Yue Hu (2): erofs: support inline data decompression erofs: add on-disk compressed tail-packing inline support fs/erofs/compress.h | 4 +- fs/erofs/decompressor.c | 129 ++++++++++++++++++++--------------- fs/erofs/decompressor_lzma.c | 19 +++--- fs/erofs/erofs_fs.h | 10 ++- fs/erofs/internal.h | 6 ++ fs/erofs/super.c | 3 + fs/erofs/sysfs.c | 2 + fs/erofs/zdata.c | 128 +++++++++++++++++++++++----------- fs/erofs/zdata.h | 24 ++++++- fs/erofs/zmap.c | 116 +++++++++++++++++++++++-------- 10 files changed, 299 insertions(+), 142 deletions(-) -- 2.24.4