Lines Matching defs:jffs2_sb_info

48 struct jffs2_sb_info {  struct
49 struct mtd_info *mtd;
51 uint32_t highest_ino;
52 uint32_t checked_ino;
54 unsigned int flags;
56 struct task_struct *gc_task; /* GC task struct */
57 struct completion gc_thread_start; /* GC thread start completion */
58 struct completion gc_thread_exit; /* GC thread exit completion port */
60 struct mutex alloc_sem; /* Used to protect all the following
63 uint32_t cleanmarker_size; /* Size of an _inline_ CLEANMARKER
66 uint32_t flash_size;
67 uint32_t used_size;
68 uint32_t dirty_size;
69 uint32_t wasted_size;
70 uint32_t free_size;
71 uint32_t erasing_size;
72 uint32_t bad_size;
73 uint32_t sector_size;
74 uint32_t unchecked_size;
76 uint32_t nr_free_blocks;
77 uint32_t nr_erasing_blocks;
80 uint8_t resv_blocks_write; /* ... allow a normal filesystem write */
81 uint8_t resv_blocks_deletion; /* ... allow a normal filesystem deletion */
82 uint8_t resv_blocks_gctrigger; /* ... wake up the GC thread */
83 uint8_t resv_blocks_gcbad; /* ... pick a block from the bad_list to GC */
84 uint8_t resv_blocks_gcmerge; /* ... merge pages when garbage collecting */
86 uint8_t vdirty_blocks_gctrigger;
88 uint32_t nospc_dirty_size;
90 uint32_t nr_blocks;
91 struct jffs2_eraseblock *blocks; /* The whole array of blocks. Used for getting blocks
93 struct jffs2_eraseblock *nextblock; /* The block we're currently filling */
95 struct jffs2_eraseblock *gcblock; /* The block we're currently garbage-collecting */
97 struct list_head clean_list; /* Blocks 100% full of clean data */
98 struct list_head very_dirty_list; /* Blocks with lots of dirty space */
99 struct list_head dirty_list; /* Blocks with some dirty space */
100 struct list_head erasable_list; /* Blocks which are completely dirty, and need erasing */
101 …sable_pending_wbuf_list; /* Blocks which need erasing but only after the current wbuf is flushed */
102 struct list_head erasing_list; /* Blocks which are currently erasing */
103 struct list_head erase_checking_list; /* Blocks which are being checked and marked */
104 struct list_head erase_pending_list; /* Blocks which need erasing now */
105 …t_head erase_complete_list; /* Blocks which are erased and need the clean marker written to them */
106 struct list_head free_list; /* Blocks which are free and ready to be used */
107 struct list_head bad_list; /* Bad blocks. */
108 struct list_head bad_used_list; /* Bad blocks with valid data in. */
110 spinlock_t erase_completion_lock; /* Protect free_list and erasing_list
112 wait_queue_head_t erase_wait; /* For waiting for erases to complete */
114 wait_queue_head_t inocache_wq;
115 int inocache_hashsize;
116 struct jffs2_inode_cache **inocache_list;
117 spinlock_t inocache_lock;
122 struct mutex erase_free_sem;
124 uint32_t wbuf_pagesize; /* 0 for NOR and other flashes with no wbuf */
127 unsigned char *wbuf_verify; /* read-back buffer for verification */
130 unsigned char *wbuf; /* Write-behind buffer for NAND flash */
131 uint32_t wbuf_ofs;
132 uint32_t wbuf_len;
133 struct jffs2_inodirty *wbuf_inodes;
134 struct rw_semaphore wbuf_sem; /* Protects the write buffer */
136 struct delayed_work wbuf_dwork; /* write-buffer write-out work */
138 unsigned char *oobbuf;
139 int oobavail; /* How many bytes are available for JFFS2 in OOB */
142 struct jffs2_summary *summary; /* Summary information */
143 struct jffs2_mount_opts mount_opts;
147 uint32_t highest_xid;
148 uint32_t highest_xseqno;
149 struct list_head xattrindex[XATTRINDEX_HASHSIZE];
150 struct list_head xattr_unchecked;
151 struct list_head xattr_dead_list;
152 struct jffs2_xattr_ref *xref_dead_list;
153 struct jffs2_xattr_ref *xref_temp;
154 struct rw_semaphore xattr_sem;
155 uint32_t xdatum_mem_usage;
156 uint32_t xdatum_mem_threshold;
159 void *os_priv;