From patchwork Mon Apr 24 04:04:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gao Xiang X-Patchwork-Id: 86834 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2501156vqo; Sun, 23 Apr 2023 21:34:24 -0700 (PDT) X-Google-Smtp-Source: AKy350Yn90FrhD/eF+gCeW3YaOoXPQpqGMzsIp182Y2wfZYZ1hmugcKej1lP0PNKrGYsBB9G7CL2 X-Received: by 2002:a05:6a20:7da7:b0:eb:e22b:efa6 with SMTP id v39-20020a056a207da700b000ebe22befa6mr16087253pzj.51.1682310863867; Sun, 23 Apr 2023 21:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682310863; cv=none; d=google.com; s=arc-20160816; b=ql2s7fjBmVYiiXaawUBdacfvbqMHq7XV6x9rJXiQ//Z38F1RFdi1YK/yUlklfSaE3l xF6gWnJwBIPe1tg8dgHWdvdakKWcv9IPNEyIOVpYSJ0Upy7+8kAI2lDXoE+onpaqmq5t UPckm8LmBLyn4NN7YN4jzwybWGKXIHNkvgNmuYPGwxlzbl94svXcartRTIyY2d4YSOYk JYnkH3lw/wifmzi25nIYSivh/qpMHyvWrZkKyZPQrCAPyAl+hMXlkj5J9vT75tPLWMl5 wWvUwZTsO6nEI4TXHMvxfExibO0B0fPuMr3FiaLZq0RAWTWF2rdfgBlgf/f+xVnTQzjy 7RyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version :mail-followup-to:message-id:subject:cc:to:from:date:dkim-signature; bh=GL1JgR6NTTzzDtAZFDWPsiOQNnPXp9mI1wok3Y4HeJw=; b=I/s2NHoOmz5/ls8qpi5zRIOn2PoS1oc8hTNe2d/ml+msUzUjZrEPmER1BcE2aHtVlg y6c6svxy5A1AgE00fgZu2sEN60K602fdpESXJUsBcSfDZutAgdRgBYNhW79NNKLgWyaA ueqwiB69yU4P7XPxEXr54rHQXs7BmwfPlmp9AP7ebA0vgU444uyDA9JBpYBQkvrB0CzH G8+cK5Ct0tLEldeKLDwFOlDJnTK6Z5iNIRvT0NiHOo1lXrcE/XK4YF9/k7dhkbZ+cM/c u/R0KSR9HD4igxm7jhuqlMf9iHXb5lldtqGBqoMO8mM98Xi787o6nBl5U7RQDewWzEZn 6Pyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Jy/Ot8Kr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l185-20020a6391c2000000b0051f226adf10si10493673pge.273.2023.04.23.21.34.08; Sun, 23 Apr 2023 21:34:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Jy/Ot8Kr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230179AbjDXEEs (ORCPT + 99 others); Mon, 24 Apr 2023 00:04:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjDXEEq (ORCPT ); Mon, 24 Apr 2023 00:04:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFE7D211D for ; Sun, 23 Apr 2023 21:04:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5D09C60BFA for ; Mon, 24 Apr 2023 04:04:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1422C433D2; Mon, 24 Apr 2023 04:04:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682309083; bh=U/3SF7+X/eFkEkXNYW+s4uskx23QWRNZm3A7thW+KFo=; h=Date:From:To:Cc:Subject:From; b=Jy/Ot8Krn1epjJ6ZyGSPcCVMsydZ7uZo7RTZJsFljEt1DrlfNznSKj0AMKbP0TBQ4 nOa+t+nfI6XxKP19E84n6wt3VMjqBI3i0POAMbayLY1JmcD0aI5AoO7TP0O7XnhbgP c+IX6ifR608t6GgiaxcN0AJi8QdWSZPG3t0YKuCJCWJpH2gkiCg3obfDs7A9SZXsX0 a9MeAyjJByW45H3hCLtGL0y6Jjhu07Mm00G5W7mc3QOPcjYjtQ8bcf+3KL3jVXdidV GL3ek/waKQOBQw0F4FedKTLh/OdhCTrssLjciEfVorIyOX+iF5cpyRihGVTQyOsQFn fXnHUj0agBtNQ== Date: Mon, 24 Apr 2023 12:04:38 +0800 From: Gao Xiang To: Linus Torvalds Cc: linux-erofs@lists.ozlabs.org, LKML , Chao Yu , Jingbo Xu , Yue Hu , Jia Zhu , Christian Brauner Subject: [GIT PULL] erofs updates for 6.4-rc1 Message-ID: Mail-Followup-To: Linus Torvalds , linux-erofs@lists.ozlabs.org, LKML , Chao Yu , Jingbo Xu , Yue Hu , Jia Zhu , Christian Brauner MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764030796040095081?= X-GMAIL-MSGID: =?utf-8?q?1764030796040095081?= Hi Linus, Could you consider this pull request for 6.4-rc1? In this cycle, sub-page block support for uncompressed files is available. It's mainly used to enable golden 4k-block images on arm64 with 16/64k pages. In addition, end users could also use this feature to build a manifest to directly refer to golden tar data. Besides, long xattr name prefix support is also introduced in this cycle to avoid too many xattrs with the same prefix (e.g. overlayfs xattrs). It's useful for erofs + overlayfs combination (like Composefs model): the image size is reduced by ~14% and runtime performance is also slightly improved. Others are random fixes and cleanups as usual. All commits have been in -next for a while and currently there is only a minor merge conflict with the vfs-idmapping tree [1]. Christian also mentioned this in the related pull request. Thanks, Gao Xiang [1] linux-next: manual merge of the erofs tree with the vfs-idmapping tree https://lore.kernel.org/r/4f9fdec2-cc2a-4bc7-9ddc-87809395f493@sirena.org.uk The following changes since commit 09a9639e56c01c7a00d6c0ca63f4c7c41abe075d: Linux 6.3-rc6 (2023-04-09 11:15:57 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git tags/erofs-for-6.4-rc1 for you to fetch changes up to 745ed7d77834048879bf24088c94e5a6462b613f: erofs: cleanup i_format-related stuffs (2023-04-17 01:15:55 +0800) ---------------------------------------------------------------- Changes since last update: - Add sub-page block size support for uncompressed files; - Support flattened block device for multi-blob images to be attached into virtual machines (including cloud servers) and bare metals; - Support long xattr name prefixes to optimize images with common xattr namespaces (e.g. files with overlayfs xattrs) use cases; - Various minor cleanups & fixes. ---------------------------------------------------------------- Gao Xiang (6): erofs: tidy up EROFS on-disk naming erofs: stop parsing non-compact HEAD index if clusterofs is invalid erofs: keep meta inode into erofs_buf erofs: get rid of z_erofs_fill_inode() erofs: sunset erofs_dbg() erofs: cleanup i_format-related stuffs Jia Zhu (1): erofs: support flattened block device for multi-blob images Jingbo Xu (12): erofs: avoid hardcoded blocksize for subpage block support erofs: set block size to the on-disk block size erofs: move several xattr helpers into xattr.c erofs: rename init_inode_xattrs with erofs_ prefix erofs: simplify erofs_xattr_generic_get() erofs: initialize packed inode after root inode is assigned erofs: move packed inode out of the compression part erofs: introduce on-disk format for long xattr name prefixes erofs: add helpers to load long xattr name prefixes erofs: handle long xattr name prefixes properly erofs: enable long extended attribute name prefixes erofs: fix potential overflow calculating xattr_isize Yue Hu (1): erofs: don't warn ztailpacking feature anymore Documentation/filesystems/erofs.rst | 4 +- fs/erofs/data.c | 81 +++++++------ fs/erofs/decompressor.c | 6 +- fs/erofs/decompressor_lzma.c | 4 +- fs/erofs/dir.c | 25 ++-- fs/erofs/erofs_fs.h | 176 ++++++++++++++-------------- fs/erofs/fscache.c | 5 +- fs/erofs/inode.c | 36 +++--- fs/erofs/internal.h | 73 +++++------- fs/erofs/namei.c | 27 +++-- fs/erofs/super.c | 116 ++++++++++-------- fs/erofs/xattr.c | 227 +++++++++++++++++++++++++----------- fs/erofs/xattr.h | 27 +---- fs/erofs/zdata.c | 25 ++-- fs/erofs/zmap.c | 166 ++++++++++++-------------- include/trace/events/erofs.h | 4 +- 16 files changed, 541 insertions(+), 461 deletions(-)