--- zzzz-none-000/linux-2.4.17/include/linux/jffs2_fs_sb.h 2001-11-22 19:46:19.000000000 +0000 +++ sangam-fb-322/linux-2.4.17/include/linux/jffs2_fs_sb.h 2004-11-24 13:21:46.000000000 +0000 @@ -1,4 +1,4 @@ -/* $Id: jffs2_fs_sb.h,v 1.16 2001/09/18 20:15:18 dwmw2 Exp $ */ +/* $Id: jffs2_fs_sb.h,v 1.1.1.1 2003/06/23 22:18:42 jharrell Exp $ */ #ifndef _JFFS2_FS_SB #define _JFFS2_FS_SB @@ -9,7 +9,7 @@ #include #include -#define INOCACHE_HASHSIZE 1 +#define INOCACHE_HASHSIZE 127 #define JFFS2_SB_FLAG_RO 1 @@ -20,7 +20,7 @@ struct jffs2_sb_info { struct mtd_info *mtd; - __u32 highest_ino; + uint32_t highest_ino; unsigned int flags; spinlock_t nodelist_lock; @@ -28,28 +28,28 @@ struct task_struct *gc_task; /* GC task struct */ struct semaphore gc_thread_start; /* GC thread start mutex */ struct completion gc_thread_exit; /* GC thread exit completion port */ - // __u32 gc_minfree_threshold; /* GC trigger thresholds */ - // __u32 gc_maxdirty_threshold; + // uint32_t gc_minfree_threshold; /* GC trigger thresholds */ + // uint32_t gc_maxdirty_threshold; struct semaphore alloc_sem; /* Used to protect all the following fields, and also to protect against out-of-order writing of nodes. And GC. */ - __u32 flash_size; - __u32 used_size; - __u32 dirty_size; - __u32 free_size; - __u32 erasing_size; - __u32 bad_size; - __u32 sector_size; - // __u32 min_free_size; - // __u32 max_chunk_size; + uint32_t flash_size; + uint32_t used_size; + uint32_t dirty_size; + uint32_t free_size; + uint32_t erasing_size; + uint32_t bad_size; + uint32_t sector_size; + // uint32_t min_free_size; + // uint32_t max_chunk_size; - __u32 nr_free_blocks; - __u32 nr_erasing_blocks; + uint32_t nr_free_blocks; + uint32_t nr_erasing_blocks; - __u32 nr_blocks; + uint32_t nr_blocks; struct jffs2_eraseblock *blocks; /* The whole array of blocks. Used for getting blocks * from the offset (blocks[ofs / sector_size]) */ struct jffs2_eraseblock *nextblock; /* The block we're currently filling */ @@ -72,12 +72,4 @@ spinlock_t inocache_lock; }; -#ifdef JFFS2_OUT_OF_KERNEL -#define JFFS2_SB_INFO(sb) ((struct jffs2_sb_info *) &(sb)->u) -#else -#define JFFS2_SB_INFO(sb) (&sb->u.jffs2_sb) -#endif - -#define OFNI_BS_2SFFJ(c) ((struct super_block *) ( ((char *)c) - ((char *)(&((struct super_block *)NULL)->u)) ) ) - #endif /* _JFFS2_FB_SB */