kernel.org linux-2.6.10
[linux-2.6.git] / include / linux / msdos_fs_i.h
1 #ifndef _MSDOS_FS_I
2 #define _MSDOS_FS_I
3
4 #include <linux/fs.h>
5
6 /*
7  * MS-DOS file system inode data in memory
8  */
9
10 #define FAT_CACHE_VALID 0       /* special case for valid cache */
11
12 struct msdos_inode_info {
13         spinlock_t cache_lru_lock;
14         struct list_head cache_lru;
15         int nr_caches;
16         /* for avoiding the race between fat_free() and fat_get_cluster() */
17         unsigned int cache_valid_id;
18
19         loff_t mmu_private;
20         int i_start;    /* first cluster or 0 */
21         int i_logstart; /* logical first cluster */
22         int i_attrs;    /* unused attribute bits */
23         int i_ctime_ms; /* unused change time in milliseconds */
24         loff_t i_pos;   /* on-disk position of directory entry or 0 */
25         struct hlist_node i_fat_hash;   /* hash by i_location */
26         struct inode vfs_inode;
27 };
28
29 #endif