From 9285a3a7d64c64e46a232ef23aa42b2f550a13e1 Mon Sep 17 00:00:00 2001 From: Hirofumi Ogawa Date: Sun, 17 Mar 2002 19:00:01 -0800 Subject: [PATCH] Fix linux/msdos_fs.h for userland (1/2) The following patch moves MSDOS_SB() and MSDOS_I() into #define __KERNEL__. --- include/linux/msdos_fs.h | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'include/linux') diff --git a/include/linux/msdos_fs.h b/include/linux/msdos_fs.h index 022e7a89d98a..e272d75bc1fd 100644 --- a/include/linux/msdos_fs.h +++ b/include/linux/msdos_fs.h @@ -4,9 +4,6 @@ /* * The MS-DOS filesystem constants/structures */ -#include -#include - #include #define MSDOS_ROOT_INO 1 /* == MINIX_ROOT_INO */ @@ -54,16 +51,6 @@ #define MSDOS_VALID_MODE (S_IFREG | S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO) /* valid file mode bits */ -static inline struct msdos_sb_info *MSDOS_SB(struct super_block *sb) -{ - return sb->u.generic_sbp; -} - -static inline struct msdos_inode_info *MSDOS_I(struct inode *inode) -{ - return list_entry(inode, struct msdos_inode_info, vfs_inode); -} - #define MSDOS_NAME 11 /* maximum name length */ #define MSDOS_LONGNAME 256 /* maximum name length */ #define MSDOS_SLOTS 21 /* max # of slots needed for short and long names */ @@ -196,6 +183,18 @@ struct vfat_slot_info { #ifdef __KERNEL__ #include +#include +#include + +static inline struct msdos_sb_info *MSDOS_SB(struct super_block *sb) +{ + return sb->u.generic_sbp; +} + +static inline struct msdos_inode_info *MSDOS_I(struct inode *inode) +{ + return list_entry(inode, struct msdos_inode_info, vfs_inode); +} struct fat_cache { struct super_block *sb; /* fs in question. NULL means unused */ -- cgit v1.2.3