Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp383052imm; Thu, 26 Jul 2018 05:26:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc+tBYz2vsyXLrudpWIa9yUc4fs198n258iepgMMa6FviboHSjee8Xr7eYmDeeTRTuKBIlw X-Received: by 2002:a63:338e:: with SMTP id z136-v6mr1711224pgz.171.1532607987711; Thu, 26 Jul 2018 05:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532607987; cv=none; d=google.com; s=arc-20160816; b=MbclfEmv30q4dGqTPhoj4lRlwV0kFW11Os+qq2foMZtzXb0LASMmy+TEeOUJ8IfoaV cw53NxTderH5jCTEkaQIiPVfHktENXDBJtm/a2xmeaLlVQutR2MkbR7M2nU+TF5ODzHF aAITpx4IfXvbZdQtr44VskhHguxJeROn7Rn1+h2SNEj89prbEIHg/yBaADHsVEKzktJW uAb9ahkP8brXF9FsLa2yd/DMD7dyQdN4gXj4WtuYnUGLqxyTIwtecWsh8FPUVk7r9UA9 WhnHdS+Yx7vB58IaMXkeuTx5TC+eJwSWRz/WkrbDStMk9EasrqwE+Wcsl+14GsZ1FZwQ PMyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=5bI0dxkKMSXAT6A/Ok15QyM3KpJBYqHNdaIEpZx4/HQ=; b=0LTWXt0WHk/FAcgyoWvlKVMqftXAzsgFwa+Vc+PEnVdDvvwTIxzIAtveKkTqmgo83B HAlN94d0qWHmPthfHWPkwr8U9tz6k8ypBFwkRxv7LJ8YgRXujF6w11aph4mngqf0nrnw MTn9jVpba2BfbtxNOyHMlHeiqVzQiglOh7SYfW0FvRrHuKyKPa6gEPgH4WIAg7Vaz3p5 5HCs9Jfga4iXvVrI0+U4TFFCiZzb6YEHTO/vdLMwVL5RoAsWJbqxsE1z6flsC0PdgKEq jO8m7z9Ct7z5WqTgWjhaM0FV/kjWx3nRBcPihztCpBIif6IvLG/pAWdczBcpgYszur0J XoOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z37-v6si1146907pgl.390.2018.07.26.05.26.12; Thu, 26 Jul 2018 05:26:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730386AbeGZNlw (ORCPT + 99 others); Thu, 26 Jul 2018 09:41:52 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:9724 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729801AbeGZNlv (ORCPT ); Thu, 26 Jul 2018 09:41:51 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 0AC4EB3A1291F; Thu, 26 Jul 2018 20:25:10 +0800 (CST) Received: from szvp000100637.huawei.com (10.162.55.131) by smtp.huawei.com (10.3.19.208) with Microsoft SMTP Server (TLS) id 14.3.382.0; Thu, 26 Jul 2018 20:25:04 +0800 From: Gao Xiang To: Greg Kroah-Hartman , CC: , , , , , , , , Gao Xiang Subject: [PATCH 08/25] staging: erofs: update Kconfig and Makefile Date: Thu, 26 Jul 2018 20:21:51 +0800 Message-ID: <1532607728-103372-9-git-send-email-gaoxiang25@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1532607728-103372-1-git-send-email-gaoxiang25@huawei.com> References: <1527764767-22190-1-git-send-email-gaoxiang25@huawei.com> <1532607728-103372-1-git-send-email-gaoxiang25@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.162.55.131] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds Makefile and Kconfig for erofs, and updates Makefile and Kconfig files in the fs directory. Signed-off-by: Miao Xie Signed-off-by: Chao Yu Signed-off-by: Gao Xiang --- drivers/staging/Kconfig | 2 ++ drivers/staging/Makefile | 1 + drivers/staging/erofs/Kconfig | 36 ++++++++++++++++++++++++++++++++++++ drivers/staging/erofs/Makefile | 11 +++++++++++ 4 files changed, 50 insertions(+) create mode 100644 drivers/staging/erofs/Kconfig create mode 100644 drivers/staging/erofs/Makefile diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig index 75a4804..de9c95a 100644 --- a/drivers/staging/Kconfig +++ b/drivers/staging/Kconfig @@ -126,4 +126,6 @@ source "drivers/staging/mt7621-eth/Kconfig" source "drivers/staging/mt7621-dts/Kconfig" +source "drivers/staging/erofs/Kconfig" + endif # STAGING diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile index e84959a..a33ac34 100644 --- a/drivers/staging/Makefile +++ b/drivers/staging/Makefile @@ -54,3 +54,4 @@ obj-$(CONFIG_SOC_MT7621) += mt7621-dma/ obj-$(CONFIG_SOC_MT7621) += mt7621-mmc/ obj-$(CONFIG_SOC_MT7621) += mt7621-eth/ obj-$(CONFIG_SOC_MT7621) += mt7621-dts/ +obj-$(CONFIG_EROFS_FS) += erofs/ diff --git a/drivers/staging/erofs/Kconfig b/drivers/staging/erofs/Kconfig new file mode 100644 index 0000000..077430f --- /dev/null +++ b/drivers/staging/erofs/Kconfig @@ -0,0 +1,36 @@ +# SPDX-License-Identifier: GPL-2.0 + +config EROFS_FS + tristate "EROFS filesystem support" + depends on BLOCK + help + EROFS(Enhanced Read-Only File System) is a lightweight + read-only file system with modern designs (eg. page-sized + blocks, inline xattrs/data, etc.) for scenarios which need + high-performance read-only requirements, eg. firmwares in + mobile phone or LIVECDs. + + It also provides VLE compression support, focusing on + random read improvements, keeping relatively lower + compression ratios, which is useful for high-performance + devices with limited memory and ROM space. + + If unsure, say N. + +config EROFS_FS_DEBUG + bool "EROFS debugging feature" + depends on EROFS_FS + help + Print EROFS debugging messages and enable more BUG_ONs + which check the filesystem consistency aggressively. + + For daily use, say N. + +config EROFS_FS_USE_VM_MAP_RAM + bool "EROFS VM_MAP_RAM Support" + depends on EROFS_FS + help + use vm_map_ram/vm_unmap_ram instead of vmap/vunmap. + + If you don't know what these are, say N. + diff --git a/drivers/staging/erofs/Makefile b/drivers/staging/erofs/Makefile new file mode 100644 index 0000000..31e909e --- /dev/null +++ b/drivers/staging/erofs/Makefile @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0 + +EROFS_VERSION = "1.0pre1" + +ccflags-y += -Wall -DEROFS_VERSION=\"$(EROFS_VERSION)\" + +obj-$(CONFIG_EROFS_FS) += erofs.o +# staging requirement: to be self-contained in its own directory +ccflags-y += -I$(src)/include +erofs-objs := super.o inode.o data.o namei.o dir.o + -- 1.9.1