1 ext4: remove unused header files
3 From: Sheng Yong <shengyong1@huawei.com>
5 Remove unused header files and header files which are included in
8 Signed-off-by: Sheng Yong <shengyong1@huawei.com>
9 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
11 fs/ext4/acl.c | 5 -----
12 fs/ext4/balloc.c | 1 -
13 fs/ext4/bitmap.c | 1 -
14 fs/ext4/block_validity.c | 1 -
16 fs/ext4/extents_status.c | 2 --
20 fs/ext4/ialloc.c | 1 -
21 fs/ext4/inode.c | 2 --
24 fs/ext4/page-io.c | 2 --
26 fs/ext4/symlink.c | 1 -
28 17 files changed, 25 deletions(-)
30 diff --git a/fs/ext4/acl.c b/fs/ext4/acl.c
31 index d40c8db..69b1e73 100644
35 * Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de>
38 -#include <linux/init.h>
39 -#include <linux/sched.h>
40 -#include <linux/slab.h>
41 -#include <linux/capability.h>
42 -#include <linux/fs.h>
43 #include "ext4_jbd2.h"
46 diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
47 index 83a6f49..9fadcf4 100644
48 --- a/fs/ext4/balloc.c
49 +++ b/fs/ext4/balloc.c
51 #include <linux/time.h>
52 #include <linux/capability.h>
54 -#include <linux/jbd2.h>
55 #include <linux/quotaops.h>
56 #include <linux/buffer_head.h>
58 diff --git a/fs/ext4/bitmap.c b/fs/ext4/bitmap.c
59 index b610779..4a606afb 100644
60 --- a/fs/ext4/bitmap.c
61 +++ b/fs/ext4/bitmap.c
65 #include <linux/buffer_head.h>
66 -#include <linux/jbd2.h>
69 unsigned int ext4_count_free(char *bitmap, unsigned int numchars)
70 diff --git a/fs/ext4/block_validity.c b/fs/ext4/block_validity.c
71 index 41eb9dc..3522340 100644
72 --- a/fs/ext4/block_validity.c
73 +++ b/fs/ext4/block_validity.c
75 #include <linux/swap.h>
76 #include <linux/pagemap.h>
77 #include <linux/blkdev.h>
78 -#include <linux/mutex.h>
79 #include <linux/slab.h>
82 diff --git a/fs/ext4/dir.c b/fs/ext4/dir.c
83 index c24143e..9e1e9e7 100644
90 -#include <linux/jbd2.h>
91 #include <linux/buffer_head.h>
92 #include <linux/slab.h>
93 -#include <linux/rbtree.h>
97 diff --git a/fs/ext4/extents_status.c b/fs/ext4/extents_status.c
98 index e04d457..d33d5a6 100644
99 --- a/fs/ext4/extents_status.c
100 +++ b/fs/ext4/extents_status.c
103 * Ext4 extents status tree core functions.
105 -#include <linux/rbtree.h>
106 #include <linux/list_sort.h>
107 #include <linux/proc_fs.h>
108 #include <linux/seq_file.h>
110 -#include "extents_status.h"
112 #include <trace/events/ext4.h>
114 diff --git a/fs/ext4/file.c b/fs/ext4/file.c
115 index 33a09da..fcc6c13 100644
120 #include <linux/time.h>
121 #include <linux/fs.h>
122 -#include <linux/jbd2.h>
123 #include <linux/mount.h>
124 #include <linux/path.h>
125 #include <linux/aio.h>
126 diff --git a/fs/ext4/fsync.c b/fs/ext4/fsync.c
127 index 5b6e9f2..ee0b204 100644
128 --- a/fs/ext4/fsync.c
129 +++ b/fs/ext4/fsync.c
131 #include <linux/fs.h>
132 #include <linux/sched.h>
133 #include <linux/writeback.h>
134 -#include <linux/jbd2.h>
135 #include <linux/blkdev.h>
138 diff --git a/fs/ext4/hash.c b/fs/ext4/hash.c
139 index 3d586f0..e026aa9 100644
145 #include <linux/fs.h>
146 -#include <linux/jbd2.h>
147 #include <linux/cryptohash.h>
150 diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c
151 index ac644c3..6ab6f63 100644
152 --- a/fs/ext4/ialloc.c
153 +++ b/fs/ext4/ialloc.c
156 #include <linux/time.h>
157 #include <linux/fs.h>
158 -#include <linux/jbd2.h>
159 #include <linux/stat.h>
160 #include <linux/string.h>
161 #include <linux/quotaops.h>
162 diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
163 index 5cb9a21..ff0c111 100644
164 --- a/fs/ext4/inode.c
165 +++ b/fs/ext4/inode.c
168 #include <linux/fs.h>
169 #include <linux/time.h>
170 -#include <linux/jbd2.h>
171 #include <linux/highuid.h>
172 #include <linux/pagemap.h>
173 #include <linux/quotaops.h>
175 #include <linux/kernel.h>
176 #include <linux/printk.h>
177 #include <linux/slab.h>
178 -#include <linux/ratelimit.h>
179 #include <linux/aio.h>
180 #include <linux/bitops.h>
182 diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
183 index f58a0d1..f1aa32c 100644
184 --- a/fs/ext4/ioctl.c
185 +++ b/fs/ext4/ioctl.c
189 #include <linux/fs.h>
190 -#include <linux/jbd2.h>
191 #include <linux/capability.h>
192 #include <linux/time.h>
193 #include <linux/compat.h>
194 diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
195 index 28fe71a..019d739 100644
196 --- a/fs/ext4/namei.c
197 +++ b/fs/ext4/namei.c
200 #include <linux/fs.h>
201 #include <linux/pagemap.h>
202 -#include <linux/jbd2.h>
203 #include <linux/time.h>
204 #include <linux/fcntl.h>
205 #include <linux/stat.h>
206 diff --git a/fs/ext4/page-io.c b/fs/ext4/page-io.c
207 index b24a254..5687e47 100644
208 --- a/fs/ext4/page-io.c
209 +++ b/fs/ext4/page-io.c
212 #include <linux/fs.h>
213 #include <linux/time.h>
214 -#include <linux/jbd2.h>
215 #include <linux/highuid.h>
216 #include <linux/pagemap.h>
217 #include <linux/quotaops.h>
219 #include <linux/kernel.h>
220 #include <linux/slab.h>
221 #include <linux/mm.h>
222 -#include <linux/ratelimit.h>
224 #include "ext4_jbd2.h"
226 diff --git a/fs/ext4/super.c b/fs/ext4/super.c
227 index e061e66..c681352 100644
228 --- a/fs/ext4/super.c
229 +++ b/fs/ext4/super.c
231 #include <linux/fs.h>
232 #include <linux/time.h>
233 #include <linux/vmalloc.h>
234 -#include <linux/jbd2.h>
235 #include <linux/slab.h>
236 #include <linux/init.h>
237 #include <linux/blkdev.h>
238 diff --git a/fs/ext4/symlink.c b/fs/ext4/symlink.c
239 index ff37119..489b343 100644
240 --- a/fs/ext4/symlink.c
241 +++ b/fs/ext4/symlink.c
245 #include <linux/fs.h>
246 -#include <linux/jbd2.h>
247 #include <linux/namei.h>
250 diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c
251 index 1e09fc7..99a2cf8 100644
252 --- a/fs/ext4/xattr.c
253 +++ b/fs/ext4/xattr.c
255 #include <linux/slab.h>
256 #include <linux/mbcache.h>
257 #include <linux/quotaops.h>
258 -#include <linux/rwsem.h>
259 #include "ext4_jbd2.h"