Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, INCLUDES_PULL_REQUEST,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D658C433ED for ; Mon, 26 Apr 2021 10:58:02 +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 6981661040 for ; Mon, 26 Apr 2021 10:57:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6981661040 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4FTMLZ0DJtz2yyC for ; Mon, 26 Apr 2021 20:57:58 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=BVO04rTw; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=IUEca95D; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=redhat.com (client-ip=170.10.133.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=hsiangkao@redhat.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=BVO04rTw; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=IUEca95D; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 4FTMLW54BJz2yRW for ; Mon, 26 Apr 2021 20:57:53 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619434670; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=mJlHYYmSrGQFfVIc4gOH0IGpUPzxG6UA9y4Zdncqjjo=; b=BVO04rTwA/hLzuLUDI7lPeU6mJa/+xGjHDBiul/eU1Q4p18P1e1NaNVUFGpfX2Qa6mc+vW yhopbYSIfgfiHs7bTQFxdrE4rL5Y19Rv3cCe3exAKRZ/xvIYIUFQ7uzYxI/gZ305UWpXVu /yE9fO/zNydesCWx6B29/hZJGovyuzY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619434671; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=mJlHYYmSrGQFfVIc4gOH0IGpUPzxG6UA9y4Zdncqjjo=; b=IUEca95DQpA1Iu5B9P/U+P+F3sqqk96ppo7ECqrFkKSwcWiZLKRY8ojgPDp07rIzPh/W7U iosVavDFgOVKyf3EiwQmBMJkU4t1/0gpWeX5d5hv2REmh/m5Xz/YfZ7yMx7U06qm6kdzN2 nX3E5nOzSbpru/kl9VG2GIb13S/7KjY= Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-584-Ijq6ab8uMR2xgjrhkmDL5w-1; Mon, 26 Apr 2021 06:57:49 -0400 X-MC-Unique: Ijq6ab8uMR2xgjrhkmDL5w-1 Received: by mail-pf1-f197.google.com with SMTP id d130-20020a621d880000b02901fb88abc171so19318101pfd.11 for ; Mon, 26 Apr 2021 03:57:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=mJlHYYmSrGQFfVIc4gOH0IGpUPzxG6UA9y4Zdncqjjo=; b=BKL+0mDqb2+yxxclduF4fvvot6DEelMdRWuiswTo0FlZnGND196B4Fe9mwHResrUYf R44Uuseux4pDcbiY0a9eUqyD8t6Hd/X0n4ILLWKdzbfC6p6v1lfkpiIn6Orx+/ipYPdL q+iJQv3tfGibvZPgrVkV0chAJ/eDc81EAACVClieTe3BkYtXmNM1cCMP9IXGa9ag1Pgb JMrcetDqwylfG2D5ZORvaB1qpGIXN4f5RQl4IARD29QLcfhk7mXbyx1CshQtMaWTO/rx zntWeokkRS5T3VW6dcP8zdqMZ7NoVmV4ZeyikWEsbooJxvJvo6JAEemriEk9atBzDxCV cidA== X-Gm-Message-State: AOAM532H2tWOAkB5ls4f0TxC2JfQQqHbh1NicRGO9C/A7G7Jn6LqNxRH 2QmOUDRJgMDURJg9ut1rR6fdAIShtN12TCSs4ERLtcGYfvdW3dGDwHdYqaxoGO1u4Z7JO4yIsLJ vB+GjbKPfGpCPTWr7wjjTEmBz X-Received: by 2002:a17:902:da8a:b029:ec:9032:35f6 with SMTP id j10-20020a170902da8ab02900ec903235f6mr18171680plx.37.1619434666952; Mon, 26 Apr 2021 03:57:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzws+NTNxvAiKn8sdeeDOlVVt+HnIfLvysb7fZgGBcohzobMhMyiwKcCUrswKtVyICDJGQLgQ== X-Received: by 2002:a17:902:da8a:b029:ec:9032:35f6 with SMTP id j10-20020a170902da8ab02900ec903235f6mr18171643plx.37.1619434666593; Mon, 26 Apr 2021 03:57:46 -0700 (PDT) Received: from xiangao.remote.csb ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id ch14sm2651837pjb.55.2021.04.26.03.57.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Apr 2021 03:57:46 -0700 (PDT) Date: Mon, 26 Apr 2021 18:57:34 +0800 From: Gao Xiang To: Linus Torvalds Subject: [GIT PULL] erofs updates for 5.13-rc1 Message-ID: <20210426105733.GA4060072@xiangao.remote.csb> MIME-Version: 1.0 User-Agent: Mutt/1.10.1 (2018-07-13) Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=hsiangkao@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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: Miao Xie , LKML , Yue Hu , Ruiqi Gong , Guo Weichao , linux-erofs@lists.ozlabs.org Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" Hi Linus, Could you consider this pull request for 5.13-rc1? In this cycle, we would like to introduce a new feature called big pcluster so EROFS can compress file data into more than 1 fs block and different pcluster size can be selected for each (sub-)files by design. The current EROFS test results on my laptop are [1]: Testscript: erofs-openbenchmark Testdata: enwik9 (1000000000 bytes) ________________________________________________________________ | file system | size | seq read | rand read | rand9m read | |_______________|___________|_ MiB/s __|__ MiB/s __|___ MiB/s ___| |___erofs_4k____|_556879872_|_ 781.4 __|__ 55.3 ___|___ 25.3 ___| |___erofs_16k___|_452509696_|_ 864.8 __|_ 123.2 ___|___ 20.8 ___| |___erofs_32k___|_415223808_|_ 899.8 __|_ 105.8 _*_|___ 16.8 ____| |___erofs_64k___|_393814016_|_ 906.6 __|__ 66.6 _*_|___ 11.8 ____| |__squashfs_8k__|_556191744_|_ 64.9 __|__ 19.3 ___|____ 9.1 ____| |__squashfs_16k_|_502661120_|_ 98.9 __|__ 38.0 ___|____ 9.8 ____| |__squashfs_32k_|_458784768_|_ 115.4 __|__ 71.6 _*_|___ 10.0 ____| |_squashfs_128k_|_398204928_|_ 257.2 __|_ 253.8 _*_|___ 10.9 ____| |____ext4_4k____|____()_____|_ 786.6 __|__ 28.6 ___|___ 27.8 ____| , which has been verified but I'd like warn it as experimental for a while. This matchs erofs-utils dev branch and I'll also release a new userspace version for this later. Apart from that, several improvements are also included: e.g. complete a missing case for inplace I/O, optimize endio decompression logic for non-atomic contexts and support adjustable sliding window size, ... In addition to those, there are some cleanups as always. All commits have been tested and have been in linux-next for about 2 weeks and I've just confirmed with 5.12 release. This merges cleanly with master. [1] https://lore.kernel.org/r/20210329053654.GA3281654@xiangao.remote.csb Thanks, Gao Xiang The following changes since commit a5e13c6df0e41702d2b2c77c8ad41677ebb065b3: Linux 5.12-rc5 (2021-03-28 15:48:16 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git tags/erofs-for-5.13-rc1 for you to fetch changes up to 8e6c8fa9f2e95c88a642521a5da19a8e31748846: erofs: enable big pcluster feature (2021-04-10 03:20:19 +0800) ---------------------------------------------------------------- Changes since last update: - avoid memory failure when applying rolling decompression; - optimize endio decompression logic for non-atomic contexts; - complete a missing case which can be safely selected for inplace I/O and thus decreasing more memory footprint; - check unsupported on-disk inode i_format strictly; - support adjustable lz4 sliding window size to decrease runtime memory footprint; - support on-disk compression configurations; - support big pcluster decompression; - several code cleanups / spelling correction. ---------------------------------------------------------------- Gao Xiang (15): erofs: complete a missing case for inplace I/O erofs: add unsupported inode i_format check erofs: introduce erofs_sb_has_xxx() helpers erofs: introduce on-disk lz4 fs configurations erofs: add on-disk compression configurations erofs: reserve physical_clusterbits[] erofs: introduce multipage per-CPU buffers erofs: introduce physical cluster slab pools erofs: fix up inplace I/O pointer for big pcluster erofs: add big physical cluster definition erofs: adjust per-CPU buffers according to max_pclusterblks erofs: support parsing big pcluster compress indexes erofs: support parsing big pcluster compact indexes erofs: support decompress big pcluster for lz4 backend erofs: enable big pcluster feature Huang Jianan (4): erofs: avoid memory allocation failure during rolling decompression erofs: use workqueue decompression for atomic contexts only erofs: use sync decompression for atomic contexts only erofs: support adjust lz4 history window size Ruiqi Gong (1): erofs: Clean up spelling mistakes found in fs/erofs Yue Hu (1): erofs: don't use erofs_map_blocks() any more fs/erofs/Kconfig | 14 --- fs/erofs/Makefile | 2 +- fs/erofs/data.c | 19 +--- fs/erofs/decompressor.c | 272 ++++++++++++++++++++++++++++++------------------ fs/erofs/erofs_fs.h | 54 ++++++++-- fs/erofs/inode.c | 7 ++ fs/erofs/internal.h | 86 ++++++++++----- fs/erofs/pcpubuf.c | 148 ++++++++++++++++++++++++++ fs/erofs/super.c | 148 +++++++++++++++++++++++++- fs/erofs/utils.c | 12 --- fs/erofs/zdata.c | 254 +++++++++++++++++++++++++++++--------------- fs/erofs/zdata.h | 14 +-- fs/erofs/zmap.c | 164 +++++++++++++++++++++++------ 13 files changed, 887 insertions(+), 307 deletions(-) create mode 100644 fs/erofs/pcpubuf.c