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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 3FBA9C678D4 for ; Mon, 6 Mar 2023 10:02:12 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4PVYyq2cmjz3cK8 for ; Mon, 6 Mar 2023 21:02:11 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.alibaba.com (client-ip=115.124.30.99; helo=out30-99.freemail.mail.aliyun.com; envelope-from=jefflexu@linux.alibaba.com; receiver=) Received: from out30-99.freemail.mail.aliyun.com (out30-99.freemail.mail.aliyun.com [115.124.30.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4PVYyl30k3z3c6V for ; Mon, 6 Mar 2023 21:02:06 +1100 (AEDT) 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=ay29a033018045176;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0VdE.52Z_1678096920; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0VdE.52Z_1678096920) by smtp.aliyun-inc.com; Mon, 06 Mar 2023 18:02:01 +0800 From: Jingbo Xu To: xiang@kernel.org, chao@kernel.org, huyue2@coolpad.com, linux-erofs@lists.ozlabs.org Subject: [PATCH v5 0/2] erofs: set block size to the on-disk block size Date: Mon, 6 Mar 2023 18:01:58 +0800 Message-Id: <20230306100200.117684-1-jefflexu@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.6.gb485710b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: linux-kernel@vger.kernel.org Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" changes since v4: - patch 1: convert several remained call sites of sb->s_blocksize_bits to erofs_blknr() and erofs_pos() (Yue Hu) - patch 2: revise comment for blkszbits and dirblkbits (Yue Hu) changes since v3: - patch 1: remove redundant newline when printing messages (Gao Xiang) - patch 2: introduce dirblkbits in on-disk superblock and disable this feature for now, so that the current kernel won't break with the image with this feature enabled later (Gao Xiang) v1: https://lore.kernel.org/all/20230216094745.47868-1-jefflexu@linux.alibaba.com/ v2: https://lore.kernel.org/all/20230217055016.71462-2-jefflexu@linux.alibaba.com/ v3: https://lore.kernel.org/all/20230220025046.103777-1-jefflexu@linux.alibaba.com/ v4: https://lore.kernel.org/all/20230302143915.111739-1-jefflexu@linux.alibaba.com/ Jingbo Xu (2): erofs: avoid hardcoded blocksize for subpage block support erofs: set block size to the on-disk block size fs/erofs/data.c | 50 ++++++++++++++------------ fs/erofs/decompressor.c | 6 ++-- fs/erofs/decompressor_lzma.c | 4 +-- fs/erofs/dir.c | 22 ++++++------ fs/erofs/erofs_fs.h | 5 +-- fs/erofs/fscache.c | 5 +-- fs/erofs/inode.c | 23 ++++++------ fs/erofs/internal.h | 29 +++++---------- fs/erofs/namei.c | 14 ++++---- fs/erofs/super.c | 70 ++++++++++++++++++++++-------------- fs/erofs/xattr.c | 40 ++++++++++----------- fs/erofs/xattr.h | 10 +++--- fs/erofs/zdata.c | 18 +++++----- fs/erofs/zmap.c | 29 +++++++-------- include/trace/events/erofs.h | 4 +-- 15 files changed, 170 insertions(+), 159 deletions(-) -- 2.19.1.6.gb485710b