erofs: tidy up redundant includes
authorFerry Meng <mengferry@linux.alibaba.com>
Thu, 26 Oct 2023 02:16:27 +0000 (10:16 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 30 Oct 2023 22:58:49 +0000 (06:58 +0800)
- Remove unused includes like <linux/parser.h> and <linux/prefetch.h>;

- Move common includes into "internal.h".

Signed-off-by: Ferry Meng <mengferry@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Yue Hu <huyue2@coolpad.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20231026021627.23284-2-mengferry@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/data.c
fs/erofs/decompressor.c
fs/erofs/decompressor_deflate.c
fs/erofs/decompressor_lzma.c
fs/erofs/internal.h
fs/erofs/super.c

index 0c2c99c58b5e3aa2524e1b17506b117624772c4d..ceb6c248bf40de0929f3f0bc343fa9c4e26c20b6 100644 (file)
@@ -5,9 +5,7 @@
  * Copyright (C) 2021, Alibaba Cloud
  */
 #include "internal.h"
-#include <linux/prefetch.h>
 #include <linux/sched/mm.h>
-#include <linux/dax.h>
 #include <trace/events/erofs.h>
 
 void erofs_unmap_metabuf(struct erofs_buf *buf)
index e75edc8f17539b34577908c409bc9db04b33865f..021be5feb1bcf94310cd590edaa79e181963d10e 100644 (file)
@@ -4,7 +4,6 @@
  *             https://www.huawei.com/
  */
 #include "compress.h"
-#include <linux/module.h>
 #include <linux/lz4.h>
 
 #ifndef LZ4_DISTANCE_MAX       /* history window size */
index 0e1946a6bda58c3ceb4f1c5a3fce04094a0a3adf..daf3c1bdeab815f3e3d42c1de6999563d942473d 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
-#include <linux/module.h>
 #include <linux/zlib.h>
 #include "compress.h"
 
index 852dd8eac5dfd8fb9ad532f583d3506980fe356c..2dd14f99c1dc10eeea57eedfccbb649bf184828f 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 #include <linux/xz.h>
-#include <linux/module.h>
 #include "compress.h"
 
 struct z_erofs_lzma {
index 9586674ba55cf82a1948cd5d0f8a043dbf0a4d22..00a2b392f445913eb98e39efcf7e824d545f5881 100644 (file)
@@ -8,8 +8,10 @@
 #define __EROFS_INTERNAL_H
 
 #include <linux/fs.h>
+#include <linux/dax.h>
 #include <linux/dcache.h>
 #include <linux/mm.h>
+#include <linux/module.h>
 #include <linux/pagemap.h>
 #include <linux/bio.h>
 #include <linux/magic.h>
index b1518df3af00924b648f0a1c1415335b1d2a935e..93aba02346aa0caaca0b7fe85d4ec0e4ef0ed239 100644 (file)
@@ -4,14 +4,11 @@
  *             https://www.huawei.com/
  * Copyright (C) 2021, Alibaba Cloud
  */
-#include <linux/module.h>
 #include <linux/statfs.h>
-#include <linux/parser.h>
 #include <linux/seq_file.h>
 #include <linux/crc32c.h>
 #include <linux/fs_context.h>
 #include <linux/fs_parser.h>
-#include <linux/dax.h>
 #include <linux/exportfs.h>
 #include "xattr.h"