From patchwork Mon Aug 23 12:36:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianan Huang X-Patchwork-Id: 1519659 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=skxgWCLa; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GtWw22YW1z9s1l for ; Mon, 23 Aug 2021 22:37:06 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 34A748321D; Mon, 23 Aug 2021 14:37:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="skxgWCLa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AF7D78320D; Mon, 23 Aug 2021 14:36:59 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8360880C87 for ; Mon, 23 Aug 2021 14:36:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jnhuang95@gmail.com Received: by mail-pg1-x535.google.com with SMTP id k24so16538131pgh.8 for ; Mon, 23 Aug 2021 05:36:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jLMgwe90MKuYKy9n2HQOVr5LSbBw0YGCHf/lpFHo6fM=; b=skxgWCLafKC/34N3vVjI3btKMfy3EuyvBluAigFiCbJa4WknWXHCpXTTh2AQUUgeVg F18HuLfyh8It2f75Xcc062KwW4jVoNdqKg95bUcV/6et9fhFMB8YyNLNxP+m4MmIpkMW YYjcIl5OSZs5FxYii/ZZ584XV5tlc3s/btYPzeNm26XW0kO/BqsKsvm7zoAvHOeOvnow jUjXV8DZtpi0UZ2/AfP4RWNOxVcE3NBRFI6a7OKBXd3/zF3UTQ4oDYA8/A8y4val68Vl mI/kIcyJ68v5TxeCZSbJ11rikarg9w3lkbLZKy3lVocizb7nElNXwgFZJJ1QrSr79VAU TlJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jLMgwe90MKuYKy9n2HQOVr5LSbBw0YGCHf/lpFHo6fM=; b=oJZQkeo/x9YTD6yd1CE79y2/cs9xAFzSlI5B2sFJ2pEaRMNGLqRyIzwIcvPPYK9dg9 Byiohz4LPZEJVd/llACsRusb9XCjGkzhc+qAyySAnNa+6oODkS1n/GETtRtqdk5kdPnc cKuODdjUO0n+51WrgQ8jZJiB+/RrLOSWWSEhUH6JF/GzxytledMuBJ0kC6p/Ffe0UwpX PT6+OhbAYev4KOf7RJVIkZbw1sfaoJt/N5V/FJkxoPTVKkWdgAgea580bTHvyuON8p1v TEkIAZCzLYVChLWYaGFHsqzSdSNjKlL8DHltjYKvCaS1uicK/m+h3AxPi71vd679eHfE 0hdA== X-Gm-Message-State: AOAM532FHt1h0SInhl+oBZ6KblueypdSbN5tveMVXxxjgxoYIOeKBMm7 k6gkaAStU+Bz4DCtbedkX8gtUhu5ex2+14eZ X-Google-Smtp-Source: ABdhPJwuVjmaaGIdAUMmV3JJPdpmhXCRrbPKfmByFWGXMo8geMfVLfzBFzh0PaH7IiYCcL89Lq/rcg== X-Received: by 2002:aa7:8f11:0:b0:3eb:47a6:551c with SMTP id x17-20020aa78f11000000b003eb47a6551cmr1026047pfr.41.1629722213441; Mon, 23 Aug 2021 05:36:53 -0700 (PDT) Received: from hjn-PC.localdomain (li1080-207.members.linode.com. [45.33.61.207]) by smtp.gmail.com with ESMTPSA id d15sm16376817pfd.115.2021.08.23.05.36.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Aug 2021 05:36:52 -0700 (PDT) From: Huang Jianan To: u-boot@lists.denx.de Cc: linux-erofs@lists.ozlabs.org, huangjianan@oppo.com, jnhuang95@gmail.com, xiang@kernel.org, hsiangkao@linux.alibaba.com, chao@kernel.org Subject: [PATCH v2 0/3] fs/erofs: new filesystem Date: Mon, 23 Aug 2021 20:36:43 +0800 Message-Id: <20210823123646.9765-1-jnhuang95@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210822154843.10971-1-jnhuang95@gmail.com> References: <20210822154843.10971-1-jnhuang95@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Huang Jianan Add erofs filesystem support. The code is adapted from erofs-utils in order to reduce maintenance burden and keep with the latest feature. Changes since v1: - fix the inconsistency between From and SoB (Bin Meng); - add missing license header; Huang Jianan (3): fs/erofs: add erofs filesystem support fs/erofs: add lz4 1.8.3 decompressor fs/erofs: add lz4 decompression support fs/Kconfig | 1 + fs/Makefile | 1 + fs/erofs/Kconfig | 12 + fs/erofs/Makefile | 10 + fs/erofs/data.c | 206 ++++++++++++++++ fs/erofs/decompress.c | 74 ++++++ fs/erofs/decompress.h | 29 +++ fs/erofs/erofs_fs.h | 384 ++++++++++++++++++++++++++++++ fs/erofs/fs.c | 231 ++++++++++++++++++ fs/erofs/internal.h | 203 ++++++++++++++++ fs/erofs/lz4.c | 534 ++++++++++++++++++++++++++++++++++++++++++ fs/erofs/lz4.h | 5 + fs/erofs/namei.c | 238 +++++++++++++++++++ fs/erofs/super.c | 65 +++++ fs/erofs/zmap.c | 517 ++++++++++++++++++++++++++++++++++++++++ fs/fs.c | 22 ++ include/erofs.h | 19 ++ include/fs.h | 1 + 18 files changed, 2552 insertions(+) create mode 100644 fs/erofs/Kconfig create mode 100644 fs/erofs/Makefile create mode 100644 fs/erofs/data.c create mode 100644 fs/erofs/decompress.c create mode 100644 fs/erofs/decompress.h create mode 100644 fs/erofs/erofs_fs.h create mode 100644 fs/erofs/fs.c create mode 100644 fs/erofs/internal.h create mode 100644 fs/erofs/lz4.c create mode 100644 fs/erofs/lz4.h create mode 100644 fs/erofs/namei.c create mode 100644 fs/erofs/super.c create mode 100644 fs/erofs/zmap.c create mode 100644 include/erofs.h