Lines Matching defs:jffs2_sb_info

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