Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6514058ybi; Sun, 21 Jul 2019 19:54:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxc3R48ywgIzXHlKxebjJUsUqTX0yU9fhxIb3JsXW4v/GczgQ9sAHSi/EAdtRXrvJdeSDmC X-Received: by 2002:a17:90a:b115:: with SMTP id z21mr12599964pjq.64.1563764081803; Sun, 21 Jul 2019 19:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563764081; cv=none; d=google.com; s=arc-20160816; b=C/zUlsPofckHb6LvpnIHvEGD3j5XH+rhavxj2mhHMmQ/R5GfwEClZwHB1y6Hj3PlYR nfhdmy544KlGdZfMeORvZ6jrVLbUNkO7Q4IWKfkHbpF22Egnc8MSecnNuCEOa6+ocX+m ELs1LwmMVUiXvl2E9HGG8uMrukkMS/nrDWcEG0Ym6EgXeSLqHRqTTrK7e/XXMMuzU083 fOqjVNnKb1pRZfhL6RC7N/JLKoaQv2n2c5d8URoeSaYpghiO/Vi14Sd/7BG/Q9T+tmfC IzOsuQbdpSG1gOJ3vOZC7et7T2A+13wJC6mxtByCgdT3InhgeaYkbEGX8VRPDYixCwyl ZiHQ== 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; bh=IpELhjale+LB33k6GEWx9S1v7i2O0+98E+aGBKJtH6o=; b=uJMEFjAegOctoLENWcuJ5haGVnqtS1txDdX7SZqQnf1uSlqu5XpmLusvzsw2MdVqR5 OJm+OcWykonNONo5fBIVU4EM0rvWmV1mtG6QW2bFv3niAiLkhLg01rdwyG6RNJVQs2hD p49yrXOOhOMOdz/4G9b59ts5ETsLpdjD7PfqrM2x6QKZP2ZzETC69/C2NqdE0GWbs5bQ BOSXAvReiwYrJEgMeSS01PxH8ObWw/yVdaN/OsAO3qjsBwvUpg8xBySbEa8Ys55Ncdy9 g5NOqQnnN5sn2wWlsklUUWkMwV/XAUpnfXsOm3rrzI/P1iuFX4fr28ThMZJUVjB8Ehf6 TUyw== 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 d3si7116873pgc.299.2019.07.21.19.54.25; Sun, 21 Jul 2019 19:54:41 -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 S1729036AbfGVCw3 (ORCPT + 99 others); Sun, 21 Jul 2019 22:52:29 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2292 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728792AbfGVCvQ (ORCPT ); Sun, 21 Jul 2019 22:51:16 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A8F2CDB7D25E41EFEB1C; Mon, 22 Jul 2019 10:51:13 +0800 (CST) Received: from architecture4.huawei.com (10.140.130.215) by smtp.huawei.com (10.3.19.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 22 Jul 2019 10:51:05 +0800 From: Gao Xiang To: Alexander Viro , Greg Kroah-Hartman , Andrew Morton , Stephen Rothwell , Theodore Ts'o , "Linus Torvalds" CC: , , LKML , , Chao Yu , Miao Xie , Li Guifu , Fang Wei , Gao Xiang Subject: [PATCH v3 10/24] erofs: update Kconfig and Makefile Date: Mon, 22 Jul 2019 10:50:29 +0800 Message-ID: <20190722025043.166344-11-gaoxiang25@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190722025043.166344-1-gaoxiang25@huawei.com> References: <20190722025043.166344-1-gaoxiang25@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.140.130.215] 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: Gao Xiang --- fs/Kconfig | 1 + fs/Makefile | 1 + fs/erofs/Kconfig | 45 +++++++++++++++++++++++++++++++++++++++++++++ fs/erofs/Makefile | 9 +++++++++ 4 files changed, 56 insertions(+) create mode 100644 fs/erofs/Kconfig create mode 100644 fs/erofs/Makefile diff --git a/fs/Kconfig b/fs/Kconfig index f1046cf6ad85..529a174cbb9c 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -262,6 +262,7 @@ source "fs/romfs/Kconfig" source "fs/pstore/Kconfig" source "fs/sysv/Kconfig" source "fs/ufs/Kconfig" +source "fs/erofs/Kconfig" endif # MISC_FILESYSTEMS diff --git a/fs/Makefile b/fs/Makefile index c9aea23aba56..6166f533abf7 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -130,3 +130,4 @@ obj-$(CONFIG_F2FS_FS) += f2fs/ obj-$(CONFIG_CEPH_FS) += ceph/ obj-$(CONFIG_PSTORE) += pstore/ obj-$(CONFIG_EFIVAR_FS) += efivarfs/ +obj-$(CONFIG_EROFS_FS) += erofs/ diff --git a/fs/erofs/Kconfig b/fs/erofs/Kconfig new file mode 100644 index 000000000000..bcab58d3f709 --- /dev/null +++ b/fs/erofs/Kconfig @@ -0,0 +1,45 @@ +# 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, e.g. Android OS + for mobile phones and LIVECDs. + + It also provides fixed-sized output compression support, + which improves storage density, keeps relatively higher + compression ratios, which is more useful to achieve high + performance for embedded devices with limited memory. + + If unsure, say N. + +config EROFS_FS_DEBUG + bool "EROFS debugging feature" + depends on EROFS_FS + help + Print debugging messages and enable more BUG_ONs which check + filesystem consistency and find potential issues aggressively, + which can be used for Android eng build, for example. + + For daily use, say N. + +config EROFS_FAULT_INJECTION + bool "EROFS fault injection facility" + depends on EROFS_FS + help + Test EROFS to inject faults such as ENOMEM, EIO, and so on. + If unsure, say N. + +config EROFS_FS_IO_MAX_RETRIES + int "EROFS IO Maximum Retries" + depends on EROFS_FS + default "5" + help + Maximum retry count of IO Errors. + + If unsure, leave the default value (5 retries, 6 IOs at most). + diff --git a/fs/erofs/Makefile b/fs/erofs/Makefile new file mode 100644 index 000000000000..ec2795f33dc5 --- /dev/null +++ b/fs/erofs/Makefile @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0 + +EROFS_VERSION = "1.0" + +ccflags-y += -DEROFS_VERSION=\"$(EROFS_VERSION)\" + +obj-$(CONFIG_EROFS_FS) += erofs.o +erofs-objs := super.o inode.o data.o namei.o dir.o + -- 2.17.1