diff options
author | Gao Xiang <hsiangkao@aol.com> | 2019-08-22 17:36:59 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-24 08:20:10 -0400 |
commit | 47e4937a4a7ca4184fd282791dfee76c6799966a (patch) | |
tree | fc68338c13a00ac74ac9f1a838491bd3f7649c28 | |
parent | f401441deda68326852560bf70d59e95f585bbb3 (diff) |
erofs: move erofs out of staging
EROFS filesystem has been merged into linux-staging for a year.
EROFS is designed to be a better solution of saving extra storage
space with guaranteed end-to-end performance for read-only files
with the help of reduced metadata, fixed-sized output compression
and decompression inplace technologies.
In the past year, EROFS was greatly improved by many people as
a staging driver, self-tested, betaed by a large number of our
internal users, successfully applied to almost all in-service
HUAWEI smartphones as the part of EMUI 9.1 and proven to be stable
enough to be moved out of staging.
EROFS is a self-contained filesystem driver. Although there are
still some TODOs to be more generic, we have a dedicated team
actively keeping on working on EROFS in order to make it better
with the evolution of Linux kernel as the other in-kernel filesystems.
As Pavel suggested, it's better to do as one commit since git
can do moves and all histories will be saved in this way.
Let's promote it from staging and enhance it more actively as
a "real" part of kernel for more wider scenarios!
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Theodore Ts'o <tytso@mit.edu>
Cc: Pavel Machek <pavel@denx.de>
Cc: David Sterba <dsterba@suse.cz>
Cc: Amir Goldstein <amir73il@gmail.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Darrick J . Wong <darrick.wong@oracle.com>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Cc: Jan Kara <jack@suse.cz>
Cc: Richard Weinberger <richard@nod.at>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Chao Yu <yuchao0@huawei.com>
Cc: Miao Xie <miaoxie@huawei.com>
Cc: Li Guifu <bluce.liguifu@huawei.com>
Cc: Fang Wei <fangwei1@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Link: https://lore.kernel.org/r/20190822213659.5501-1-hsiangkao@aol.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | Documentation/filesystems/erofs.txt (renamed from drivers/staging/erofs/Documentation/filesystems/erofs.txt) | 4 | ||||
-rw-r--r-- | MAINTAINERS | 14 | ||||
-rw-r--r-- | drivers/staging/Kconfig | 2 | ||||
-rw-r--r-- | drivers/staging/Makefile | 1 | ||||
-rw-r--r-- | drivers/staging/erofs/TODO | 46 | ||||
-rw-r--r-- | fs/Kconfig | 1 | ||||
-rw-r--r-- | fs/Makefile | 1 | ||||
-rw-r--r-- | fs/erofs/Kconfig (renamed from drivers/staging/erofs/Kconfig) | 0 | ||||
-rw-r--r-- | fs/erofs/Makefile (renamed from drivers/staging/erofs/Makefile) | 4 | ||||
-rw-r--r-- | fs/erofs/compress.h (renamed from drivers/staging/erofs/compress.h) | 2 | ||||
-rw-r--r-- | fs/erofs/data.c (renamed from drivers/staging/erofs/data.c) | 2 | ||||
-rw-r--r-- | fs/erofs/decompressor.c (renamed from drivers/staging/erofs/decompressor.c) | 2 | ||||
-rw-r--r-- | fs/erofs/dir.c (renamed from drivers/staging/erofs/dir.c) | 2 | ||||
-rw-r--r-- | fs/erofs/erofs_fs.h (renamed from drivers/staging/erofs/erofs_fs.h) | 3 | ||||
-rw-r--r-- | fs/erofs/inode.c (renamed from drivers/staging/erofs/inode.c) | 2 | ||||
-rw-r--r-- | fs/erofs/internal.h (renamed from drivers/staging/erofs/internal.h) | 3 | ||||
-rw-r--r-- | fs/erofs/namei.c (renamed from drivers/staging/erofs/namei.c) | 2 | ||||
-rw-r--r-- | fs/erofs/super.c (renamed from drivers/staging/erofs/super.c) | 2 | ||||
-rw-r--r-- | fs/erofs/tagptr.h (renamed from drivers/staging/erofs/tagptr.h) | 0 | ||||
-rw-r--r-- | fs/erofs/utils.c (renamed from drivers/staging/erofs/utils.c) | 2 | ||||
-rw-r--r-- | fs/erofs/xattr.c (renamed from drivers/staging/erofs/xattr.c) | 2 | ||||
-rw-r--r-- | fs/erofs/xattr.h (renamed from drivers/staging/erofs/xattr.h) | 2 | ||||
-rw-r--r-- | fs/erofs/zdata.c (renamed from drivers/staging/erofs/zdata.c) | 2 | ||||
-rw-r--r-- | fs/erofs/zdata.h (renamed from drivers/staging/erofs/zdata.h) | 2 | ||||
-rw-r--r-- | fs/erofs/zmap.c (renamed from drivers/staging/erofs/zmap.c) | 2 | ||||
-rw-r--r-- | fs/erofs/zpvec.h (renamed from drivers/staging/erofs/zpvec.h) | 2 | ||||
-rw-r--r-- | include/trace/events/erofs.h (renamed from drivers/staging/erofs/include/trace/events/erofs.h) | 0 | ||||
-rw-r--r-- | include/uapi/linux/magic.h | 1 |
28 files changed, 12 insertions, 96 deletions
diff --git a/drivers/staging/erofs/Documentation/filesystems/erofs.txt b/Documentation/filesystems/erofs.txt index 0eab600ca7ca..38aa9126ec98 100644 --- a/drivers/staging/erofs/Documentation/filesystems/erofs.txt +++ b/Documentation/filesystems/erofs.txt | |||
@@ -49,10 +49,6 @@ Bugs and patches are welcome, please kindly help us and send to the following | |||
49 | linux-erofs mailing list: | 49 | linux-erofs mailing list: |
50 | >> linux-erofs mailing list <linux-erofs@lists.ozlabs.org> | 50 | >> linux-erofs mailing list <linux-erofs@lists.ozlabs.org> |
51 | 51 | ||
52 | Note that EROFS is still working in progress as a Linux staging driver, | ||
53 | Cc the staging mailing list as well is highly recommended: | ||
54 | >> Linux Driver Project Developer List <devel@driverdev.osuosl.org> | ||
55 | |||
56 | Mount options | 52 | Mount options |
57 | ============= | 53 | ============= |
58 | 54 | ||
diff --git a/MAINTAINERS b/MAINTAINERS index 6847372cfab8..0f38cba2c581 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -6046,6 +6046,13 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/kristoffer/linux-hpc.git | |||
6046 | F: drivers/video/fbdev/s1d13xxxfb.c | 6046 | F: drivers/video/fbdev/s1d13xxxfb.c |
6047 | F: include/video/s1d13xxxfb.h | 6047 | F: include/video/s1d13xxxfb.h |
6048 | 6048 | ||
6049 | EROFS FILE SYSTEM | ||
6050 | M: Gao Xiang <gaoxiang25@huawei.com> | ||
6051 | M: Chao Yu <yuchao0@huawei.com> | ||
6052 | L: linux-erofs@lists.ozlabs.org | ||
6053 | S: Maintained | ||
6054 | F: fs/erofs/ | ||
6055 | |||
6049 | ERRSEQ ERROR TRACKING INFRASTRUCTURE | 6056 | ERRSEQ ERROR TRACKING INFRASTRUCTURE |
6050 | M: Jeff Layton <jlayton@kernel.org> | 6057 | M: Jeff Layton <jlayton@kernel.org> |
6051 | S: Maintained | 6058 | S: Maintained |
@@ -15229,13 +15236,6 @@ M: H Hartley Sweeten <hsweeten@visionengravers.com> | |||
15229 | S: Odd Fixes | 15236 | S: Odd Fixes |
15230 | F: drivers/staging/comedi/ | 15237 | F: drivers/staging/comedi/ |
15231 | 15238 | ||
15232 | STAGING - EROFS FILE SYSTEM | ||
15233 | M: Gao Xiang <gaoxiang25@huawei.com> | ||
15234 | M: Chao Yu <yuchao0@huawei.com> | ||
15235 | L: linux-erofs@lists.ozlabs.org | ||
15236 | S: Maintained | ||
15237 | F: drivers/staging/erofs/ | ||
15238 | |||
15239 | STAGING - FIELDBUS SUBSYSTEM | 15239 | STAGING - FIELDBUS SUBSYSTEM |
15240 | M: Sven Van Asbroeck <TheSven73@gmail.com> | 15240 | M: Sven Van Asbroeck <TheSven73@gmail.com> |
15241 | S: Maintained | 15241 | S: Maintained |
diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig index 7c96a01eef6c..d972ec8e71fb 100644 --- a/drivers/staging/Kconfig +++ b/drivers/staging/Kconfig | |||
@@ -112,8 +112,6 @@ source "drivers/staging/gasket/Kconfig" | |||
112 | 112 | ||
113 | source "drivers/staging/axis-fifo/Kconfig" | 113 | source "drivers/staging/axis-fifo/Kconfig" |
114 | 114 | ||
115 | source "drivers/staging/erofs/Kconfig" | ||
116 | |||
117 | source "drivers/staging/fieldbus/Kconfig" | 115 | source "drivers/staging/fieldbus/Kconfig" |
118 | 116 | ||
119 | source "drivers/staging/kpc2000/Kconfig" | 117 | source "drivers/staging/kpc2000/Kconfig" |
diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile index fcaac9693b83..6018b9a4a077 100644 --- a/drivers/staging/Makefile +++ b/drivers/staging/Makefile | |||
@@ -46,7 +46,6 @@ obj-$(CONFIG_DMA_RALINK) += ralink-gdma/ | |||
46 | obj-$(CONFIG_SOC_MT7621) += mt7621-dts/ | 46 | obj-$(CONFIG_SOC_MT7621) += mt7621-dts/ |
47 | obj-$(CONFIG_STAGING_GASKET_FRAMEWORK) += gasket/ | 47 | obj-$(CONFIG_STAGING_GASKET_FRAMEWORK) += gasket/ |
48 | obj-$(CONFIG_XIL_AXIS_FIFO) += axis-fifo/ | 48 | obj-$(CONFIG_XIL_AXIS_FIFO) += axis-fifo/ |
49 | obj-$(CONFIG_EROFS_FS) += erofs/ | ||
50 | obj-$(CONFIG_FIELDBUS_DEV) += fieldbus/ | 49 | obj-$(CONFIG_FIELDBUS_DEV) += fieldbus/ |
51 | obj-$(CONFIG_KPC2000) += kpc2000/ | 50 | obj-$(CONFIG_KPC2000) += kpc2000/ |
52 | obj-$(CONFIG_ISDN_CAPI) += isdn/ | 51 | obj-$(CONFIG_ISDN_CAPI) += isdn/ |
diff --git a/drivers/staging/erofs/TODO b/drivers/staging/erofs/TODO deleted file mode 100644 index a8608b2f72bd..000000000000 --- a/drivers/staging/erofs/TODO +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | |||
2 | EROFS is still working in progress, thus it is not suitable | ||
3 | for all productive uses. play at your own risk :) | ||
4 | |||
5 | TODO List: | ||
6 | - add the missing error handling code | ||
7 | (mainly existed in xattr and decompression submodules); | ||
8 | |||
9 | - finalize erofs ondisk format design (which means that | ||
10 | minor on-disk revisions could happen later); | ||
11 | |||
12 | - documentation and detailed technical analysis; | ||
13 | |||
14 | - general code review and clean up | ||
15 | (including confusing variable names and code snippets); | ||
16 | |||
17 | - support larger compressed clustersizes for selection | ||
18 | (currently erofs only works as expected with the page-sized | ||
19 | compressed cluster configuration, usually 4KB); | ||
20 | |||
21 | - support more lossless data compression algorithms | ||
22 | in addition to LZ4 algorithms in VLE approach; | ||
23 | |||
24 | - data deduplication and other useful features. | ||
25 | |||
26 | The following git tree provides the file system user-space | ||
27 | tools under development (ex, formatting tool mkfs.erofs): | ||
28 | >> git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git | ||
29 | |||
30 | The open-source development of erofs-utils is at the early stage. | ||
31 | Contact the original author Li Guifu <bluce.liguifu@huawei.com> and | ||
32 | the co-maintainer Fang Wei <fangwei1@huawei.com> for the latest news | ||
33 | and more details. | ||
34 | |||
35 | Code, suggestions, etc, are welcome. Please feel free to | ||
36 | ask and send patches, | ||
37 | |||
38 | To: | ||
39 | linux-erofs mailing list <linux-erofs@lists.ozlabs.org> | ||
40 | Gao Xiang <gaoxiang25@huawei.com> | ||
41 | Chao Yu <yuchao0@huawei.com> | ||
42 | |||
43 | Cc: (for linux-kernel upstream patches) | ||
44 | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | ||
45 | linux-staging mailing list <devel@driverdev.osuosl.org> | ||
46 | |||
diff --git a/fs/Kconfig b/fs/Kconfig index bfb1c6095c7a..669d46550e6d 100644 --- a/fs/Kconfig +++ b/fs/Kconfig | |||
@@ -261,6 +261,7 @@ source "fs/romfs/Kconfig" | |||
261 | source "fs/pstore/Kconfig" | 261 | source "fs/pstore/Kconfig" |
262 | source "fs/sysv/Kconfig" | 262 | source "fs/sysv/Kconfig" |
263 | source "fs/ufs/Kconfig" | 263 | source "fs/ufs/Kconfig" |
264 | source "fs/erofs/Kconfig" | ||
264 | 265 | ||
265 | endif # MISC_FILESYSTEMS | 266 | endif # MISC_FILESYSTEMS |
266 | 267 | ||
diff --git a/fs/Makefile b/fs/Makefile index d60089fd689b..b2e4973a0bea 100644 --- a/fs/Makefile +++ b/fs/Makefile | |||
@@ -130,3 +130,4 @@ obj-$(CONFIG_F2FS_FS) += f2fs/ | |||
130 | obj-$(CONFIG_CEPH_FS) += ceph/ | 130 | obj-$(CONFIG_CEPH_FS) += ceph/ |
131 | obj-$(CONFIG_PSTORE) += pstore/ | 131 | obj-$(CONFIG_PSTORE) += pstore/ |
132 | obj-$(CONFIG_EFIVAR_FS) += efivarfs/ | 132 | obj-$(CONFIG_EFIVAR_FS) += efivarfs/ |
133 | obj-$(CONFIG_EROFS_FS) += erofs/ | ||
diff --git a/drivers/staging/erofs/Kconfig b/fs/erofs/Kconfig index 16316d1adca3..16316d1adca3 100644 --- a/drivers/staging/erofs/Kconfig +++ b/fs/erofs/Kconfig | |||
diff --git a/drivers/staging/erofs/Makefile b/fs/erofs/Makefile index 5cdae21cb5af..46f2aa4ba46c 100644 --- a/drivers/staging/erofs/Makefile +++ b/fs/erofs/Makefile | |||
@@ -1,12 +1,10 @@ | |||
1 | # SPDX-License-Identifier: GPL-2.0-only | 1 | # SPDX-License-Identifier: GPL-2.0-only |
2 | 2 | ||
3 | EROFS_VERSION = "1.0pre1" | 3 | EROFS_VERSION = "1.0" |
4 | 4 | ||
5 | ccflags-y += -DEROFS_VERSION=\"$(EROFS_VERSION)\" | 5 | ccflags-y += -DEROFS_VERSION=\"$(EROFS_VERSION)\" |
6 | 6 | ||
7 | obj-$(CONFIG_EROFS_FS) += erofs.o | 7 | obj-$(CONFIG_EROFS_FS) += erofs.o |
8 | # staging requirement: to be self-contained in its own directory | ||
9 | ccflags-y += -I $(srctree)/$(src)/include | ||
10 | erofs-objs := super.o inode.o data.o namei.o dir.o utils.o | 8 | erofs-objs := super.o inode.o data.o namei.o dir.o utils.o |
11 | erofs-$(CONFIG_EROFS_FS_XATTR) += xattr.o | 9 | erofs-$(CONFIG_EROFS_FS_XATTR) += xattr.o |
12 | erofs-$(CONFIG_EROFS_FS_ZIP) += decompressor.o zmap.o zdata.o | 10 | erofs-$(CONFIG_EROFS_FS_ZIP) += decompressor.o zmap.o zdata.o |
diff --git a/drivers/staging/erofs/compress.h b/fs/erofs/compress.h index 043013f9ef1b..07d279fd5d67 100644 --- a/drivers/staging/erofs/compress.h +++ b/fs/erofs/compress.h | |||
@@ -1,7 +1,5 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0-only */ | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/compress.h | ||
4 | * | ||
5 | * Copyright (C) 2019 HUAWEI, Inc. | 3 | * Copyright (C) 2019 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
diff --git a/drivers/staging/erofs/data.c b/fs/erofs/data.c index 72c4b4c5296b..fda16ec8863e 100644 --- a/drivers/staging/erofs/data.c +++ b/fs/erofs/data.c | |||
@@ -1,7 +1,5 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | 1 | // SPDX-License-Identifier: GPL-2.0-only |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/data.c | ||
4 | * | ||
5 | * Copyright (C) 2017-2018 HUAWEI, Inc. | 3 | * Copyright (C) 2017-2018 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
diff --git a/drivers/staging/erofs/decompressor.c b/fs/erofs/decompressor.c index 32a811ac704a..5f4b7f302863 100644 --- a/drivers/staging/erofs/decompressor.c +++ b/fs/erofs/decompressor.c | |||
@@ -1,7 +1,5 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | 1 | // SPDX-License-Identifier: GPL-2.0-only |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/decompressor.c | ||
4 | * | ||
5 | * Copyright (C) 2019 HUAWEI, Inc. | 3 | * Copyright (C) 2019 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
diff --git a/drivers/staging/erofs/dir.c b/fs/erofs/dir.c index 77ef856df9f3..1976e60e5174 100644 --- a/drivers/staging/erofs/dir.c +++ b/fs/erofs/dir.c | |||
@@ -1,7 +1,5 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | 1 | // SPDX-License-Identifier: GPL-2.0-only |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/dir.c | ||
4 | * | ||
5 | * Copyright (C) 2017-2018 HUAWEI, Inc. | 3 | * Copyright (C) 2017-2018 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
diff --git a/drivers/staging/erofs/erofs_fs.h b/fs/erofs/erofs_fs.h index 6db70f395937..afa7d45ca958 100644 --- a/drivers/staging/erofs/erofs_fs.h +++ b/fs/erofs/erofs_fs.h | |||
@@ -1,7 +1,5 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0-only OR Apache-2.0 */ | 1 | /* SPDX-License-Identifier: GPL-2.0-only OR Apache-2.0 */ |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/erofs_fs.h | ||
4 | * | ||
5 | * Copyright (C) 2017-2018 HUAWEI, Inc. | 3 | * Copyright (C) 2017-2018 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
@@ -10,7 +8,6 @@ | |||
10 | #define __EROFS_FS_H | 8 | #define __EROFS_FS_H |
11 | 9 | ||
12 | /* Enhanced(Extended) ROM File System */ | 10 | /* Enhanced(Extended) ROM File System */ |
13 | #define EROFS_SUPER_MAGIC_V1 0xE0F5E1E2 | ||
14 | #define EROFS_SUPER_OFFSET 1024 | 11 | #define EROFS_SUPER_OFFSET 1024 |
15 | 12 | ||
16 | /* | 13 | /* |
diff --git a/drivers/staging/erofs/inode.c b/fs/erofs/inode.c index cbc2c342a37f..80f4fe919ee7 100644 --- a/drivers/staging/erofs/inode.c +++ b/fs/erofs/inode.c | |||
@@ -1,7 +1,5 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | 1 | // SPDX-License-Identifier: GPL-2.0-only |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/inode.c | ||
4 | * | ||
5 | * Copyright (C) 2017-2018 HUAWEI, Inc. | 3 | * Copyright (C) 2017-2018 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
diff --git a/drivers/staging/erofs/internal.h b/fs/erofs/internal.h index 0e8d58546c52..620b73fcc416 100644 --- a/drivers/staging/erofs/internal.h +++ b/fs/erofs/internal.h | |||
@@ -1,7 +1,5 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0-only */ | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/internal.h | ||
4 | * | ||
5 | * Copyright (C) 2017-2018 HUAWEI, Inc. | 3 | * Copyright (C) 2017-2018 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
@@ -15,6 +13,7 @@ | |||
15 | #include <linux/pagemap.h> | 13 | #include <linux/pagemap.h> |
16 | #include <linux/bio.h> | 14 | #include <linux/bio.h> |
17 | #include <linux/buffer_head.h> | 15 | #include <linux/buffer_head.h> |
16 | #include <linux/magic.h> | ||
18 | #include <linux/slab.h> | 17 | #include <linux/slab.h> |
19 | #include <linux/vmalloc.h> | 18 | #include <linux/vmalloc.h> |
20 | #include "erofs_fs.h" | 19 | #include "erofs_fs.h" |
diff --git a/drivers/staging/erofs/namei.c b/fs/erofs/namei.c index 8334a910acef..8832b5d95d91 100644 --- a/drivers/staging/erofs/namei.c +++ b/fs/erofs/namei.c | |||
@@ -1,7 +1,5 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | 1 | // SPDX-License-Identifier: GPL-2.0-only |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/namei.c | ||
4 | * | ||
5 | * Copyright (C) 2017-2018 HUAWEI, Inc. | 3 | * Copyright (C) 2017-2018 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
diff --git a/drivers/staging/erofs/super.c b/fs/erofs/super.c index 2da471010a86..6d3a9bcb8daa 100644 --- a/drivers/staging/erofs/super.c +++ b/fs/erofs/super.c | |||
@@ -1,7 +1,5 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | 1 | // SPDX-License-Identifier: GPL-2.0-only |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/super.c | ||
4 | * | ||
5 | * Copyright (C) 2017-2018 HUAWEI, Inc. | 3 | * Copyright (C) 2017-2018 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
diff --git a/drivers/staging/erofs/tagptr.h b/fs/erofs/tagptr.h index a72897c86744..a72897c86744 100644 --- a/drivers/staging/erofs/tagptr.h +++ b/fs/erofs/tagptr.h | |||
diff --git a/drivers/staging/erofs/utils.c b/fs/erofs/utils.c index 814c2ee037ae..1dd041aa0f5a 100644 --- a/drivers/staging/erofs/utils.c +++ b/fs/erofs/utils.c | |||
@@ -1,7 +1,5 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | 1 | // SPDX-License-Identifier: GPL-2.0-only |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/utils.c | ||
4 | * | ||
5 | * Copyright (C) 2018 HUAWEI, Inc. | 3 | * Copyright (C) 2018 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
diff --git a/drivers/staging/erofs/xattr.c b/fs/erofs/xattr.c index e7e5840e3f9d..a8286998a079 100644 --- a/drivers/staging/erofs/xattr.c +++ b/fs/erofs/xattr.c | |||
@@ -1,7 +1,5 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | 1 | // SPDX-License-Identifier: GPL-2.0-only |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/xattr.c | ||
4 | * | ||
5 | * Copyright (C) 2017-2018 HUAWEI, Inc. | 3 | * Copyright (C) 2017-2018 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
diff --git a/drivers/staging/erofs/xattr.h b/fs/erofs/xattr.h index e20249647541..c5ca47d814dd 100644 --- a/drivers/staging/erofs/xattr.h +++ b/fs/erofs/xattr.h | |||
@@ -1,7 +1,5 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0-only */ | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/xattr.h | ||
4 | * | ||
5 | * Copyright (C) 2017-2018 HUAWEI, Inc. | 3 | * Copyright (C) 2017-2018 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
diff --git a/drivers/staging/erofs/zdata.c b/fs/erofs/zdata.c index 60d7c20db87d..b32ad585237c 100644 --- a/drivers/staging/erofs/zdata.c +++ b/fs/erofs/zdata.c | |||
@@ -1,7 +1,5 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | 1 | // SPDX-License-Identifier: GPL-2.0-only |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/zdata.c | ||
4 | * | ||
5 | * Copyright (C) 2018 HUAWEI, Inc. | 3 | * Copyright (C) 2018 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
diff --git a/drivers/staging/erofs/zdata.h b/fs/erofs/zdata.h index e11fe1959ca2..4fc547bc01f9 100644 --- a/drivers/staging/erofs/zdata.h +++ b/fs/erofs/zdata.h | |||
@@ -1,7 +1,5 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0-only */ | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/zdata.h | ||
4 | * | ||
5 | * Copyright (C) 2018 HUAWEI, Inc. | 3 | * Copyright (C) 2018 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
diff --git a/drivers/staging/erofs/zmap.c b/fs/erofs/zmap.c index 774dacbc5b32..4dc9cec01297 100644 --- a/drivers/staging/erofs/zmap.c +++ b/fs/erofs/zmap.c | |||
@@ -1,7 +1,5 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0-only | 1 | // SPDX-License-Identifier: GPL-2.0-only |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/zmap.c | ||
4 | * | ||
5 | * Copyright (C) 2018-2019 HUAWEI, Inc. | 3 | * Copyright (C) 2018-2019 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
diff --git a/drivers/staging/erofs/zpvec.h b/fs/erofs/zpvec.h index 9798f5627786..bd3cee16491c 100644 --- a/drivers/staging/erofs/zpvec.h +++ b/fs/erofs/zpvec.h | |||
@@ -1,7 +1,5 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0-only */ | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | /* | 2 | /* |
3 | * linux/drivers/staging/erofs/zpvec.h | ||
4 | * | ||
5 | * Copyright (C) 2018 HUAWEI, Inc. | 3 | * Copyright (C) 2018 HUAWEI, Inc. |
6 | * http://www.huawei.com/ | 4 | * http://www.huawei.com/ |
7 | * Created by Gao Xiang <gaoxiang25@huawei.com> | 5 | * Created by Gao Xiang <gaoxiang25@huawei.com> |
diff --git a/drivers/staging/erofs/include/trace/events/erofs.h b/include/trace/events/erofs.h index bfb2da9c4eee..bfb2da9c4eee 100644 --- a/drivers/staging/erofs/include/trace/events/erofs.h +++ b/include/trace/events/erofs.h | |||
diff --git a/include/uapi/linux/magic.h b/include/uapi/linux/magic.h index 1274c692e59c..903cc2d2750b 100644 --- a/include/uapi/linux/magic.h +++ b/include/uapi/linux/magic.h | |||
@@ -19,6 +19,7 @@ | |||
19 | #define SQUASHFS_MAGIC 0x73717368 | 19 | #define SQUASHFS_MAGIC 0x73717368 |
20 | #define ECRYPTFS_SUPER_MAGIC 0xf15f | 20 | #define ECRYPTFS_SUPER_MAGIC 0xf15f |
21 | #define EFS_SUPER_MAGIC 0x414A53 | 21 | #define EFS_SUPER_MAGIC 0x414A53 |
22 | #define EROFS_SUPER_MAGIC_V1 0xE0F5E1E2 | ||
22 | #define EXT2_SUPER_MAGIC 0xEF53 | 23 | #define EXT2_SUPER_MAGIC 0xEF53 |
23 | #define EXT3_SUPER_MAGIC 0xEF53 | 24 | #define EXT3_SUPER_MAGIC 0xEF53 |
24 | #define XENFS_SUPER_MAGIC 0xabba1974 | 25 | #define XENFS_SUPER_MAGIC 0xabba1974 |