Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fs/fat: remove unnecessary includes

'fat.h' includes <linux/buffer_head.h> which includes <linux/fs.h> which
includes all the header files required for all *.c files fat filesystem.

[akpm@linux-foundation.org: fs/fat/iode.c needs seq_file.h]
[sfr@canb.auug.org.au: put one actually necessary include file back]
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Alexander Kuleshov and committed by
Linus Torvalds
58932ef7 a40a7d9d

+1 -33
-2
fs/fat/cache.c
··· 8 8 * May 1999. AV. Fixed the bogosity with FAT32 (read "FAT28"). Fscking lusers. 9 9 */ 10 10 11 - #include <linux/fs.h> 12 11 #include <linux/slab.h> 13 - #include <linux/buffer_head.h> 14 12 #include "fat.h" 15 13 16 14 /* this must be > 0. */
-4
fs/fat/dir.c
··· 13 13 * Short name translation 1999, 2001 by Wolfram Pienkoss <wp@bszh.de> 14 14 */ 15 15 16 - #include <linux/module.h> 17 16 #include <linux/slab.h> 18 - #include <linux/time.h> 19 - #include <linux/buffer_head.h> 20 17 #include <linux/compat.h> 21 18 #include <linux/uaccess.h> 22 - #include <linux/kernel.h> 23 19 #include "fat.h" 24 20 25 21 /*
-3
fs/fat/fat.h
··· 2 2 #define _FAT_H 3 3 4 4 #include <linux/buffer_head.h> 5 - #include <linux/string.h> 6 5 #include <linux/nls.h> 7 - #include <linux/fs.h> 8 6 #include <linux/hash.h> 9 - #include <linux/mutex.h> 10 7 #include <linux/ratelimit.h> 11 8 #include <linux/msdos_fs.h> 12 9
-3
fs/fat/fatent.c
··· 3 3 * Released under GPL v2. 4 4 */ 5 5 6 - #include <linux/module.h> 7 - #include <linux/fs.h> 8 - #include <linux/msdos_fs.h> 9 6 #include <linux/blkdev.h> 10 7 #include "fat.h" 11 8
-4
fs/fat/file.c
··· 10 10 #include <linux/module.h> 11 11 #include <linux/compat.h> 12 12 #include <linux/mount.h> 13 - #include <linux/time.h> 14 - #include <linux/buffer_head.h> 15 - #include <linux/writeback.h> 16 - #include <linux/backing-dev.h> 17 13 #include <linux/blkdev.h> 18 14 #include <linux/fsnotify.h> 19 15 #include <linux/security.h>
+1 -9
fs/fat/inode.c
··· 11 11 */ 12 12 13 13 #include <linux/module.h> 14 - #include <linux/init.h> 15 - #include <linux/time.h> 16 - #include <linux/slab.h> 17 - #include <linux/seq_file.h> 18 14 #include <linux/pagemap.h> 19 15 #include <linux/mpage.h> 20 - #include <linux/buffer_head.h> 21 - #include <linux/mount.h> 22 16 #include <linux/vfs.h> 17 + #include <linux/seq_file.h> 23 18 #include <linux/parser.h> 24 19 #include <linux/uio.h> 25 - #include <linux/writeback.h> 26 - #include <linux/log2.h> 27 - #include <linux/hash.h> 28 20 #include <linux/blkdev.h> 29 21 #include <asm/unaligned.h> 30 22 #include "fat.h"
-4
fs/fat/misc.c
··· 6 6 * and date_dos2unix for date==0 by Igor Zhbanov(bsg@uniyar.ac.ru) 7 7 */ 8 8 9 - #include <linux/module.h> 10 - #include <linux/fs.h> 11 - #include <linux/buffer_head.h> 12 - #include <linux/time.h> 13 9 #include "fat.h" 14 10 15 11 /*
-2
fs/fat/namei_msdos.c
··· 7 7 */ 8 8 9 9 #include <linux/module.h> 10 - #include <linux/time.h> 11 - #include <linux/buffer_head.h> 12 10 #include "fat.h" 13 11 14 12 /* Characters that are undesirable in an MS-DOS file name */
-2
fs/fat/namei_vfat.c
··· 16 16 */ 17 17 18 18 #include <linux/module.h> 19 - #include <linux/jiffies.h> 20 19 #include <linux/ctype.h> 21 20 #include <linux/slab.h> 22 - #include <linux/buffer_head.h> 23 21 #include <linux/namei.h> 24 22 #include "fat.h" 25 23