Home | History | Annotate | Download | only in ubifs

Lines Matching refs:lst

181 	if (c->lst.empty_lebs < 0 || c->lst.empty_lebs > c->main_lebs - 2) {
186 if (c->lst.idx_lebs < 0 || c->lst.idx_lebs > c->main_lebs - 1) {
191 if (c->lst.total_free < 0 || c->lst.total_free > main_sz ||
192 c->lst.total_free & 7) {
197 if (c->lst.total_dirty < 0 || (c->lst.total_dirty & 7)) {
202 if (c->lst.total_used < 0 || (c->lst.total_used & 7)) {
207 if (c->lst.total_free + c->lst.total_dirty +
208 c->lst.total_used > main_sz) {
213 if (c->lst.total_dead + c->lst.total_dark +
214 c->lst.total_used + c->bi.old_idx_sz > main_sz) {
219 if (c->lst.total_dead < 0 ||
220 c->lst.total_dead > c->lst.total_free + c->lst.total_dirty ||
221 c->lst.total_dead & 7) {
226 if (c->lst.total_dark < 0 ||
227 c->lst.total_dark > c->lst.total_free + c->lst.total_dirty ||
228 c->lst.total_dark & 7) {
292 c->lst.empty_lebs = le32_to_cpu(c->mst_node->empty_lebs);
293 c->lst.idx_lebs = le32_to_cpu(c->mst_node->idx_lebs);
295 c->lst.total_free = le64_to_cpu(c->mst_node->total_free);
296 c->lst.total_dirty = le64_to_cpu(c->mst_node->total_dirty);
297 c->lst.total_used = le64_to_cpu(c->mst_node->total_used);
298 c->lst.total_dead = le64_to_cpu(c->mst_node->total_dead);
299 c->lst.total_dark = le64_to_cpu(c->mst_node->total_dark);
319 c->lst.empty_lebs += growth;
320 c->lst.total_free += growth * (long long)c->leb_size;
321 c->lst.total_dark += growth * (long long)c->dark_wm;
330 c->mst_node->empty_lebs = cpu_to_le32(c->lst.empty_lebs);
331 c->mst_node->total_free = cpu_to_le64(c->lst.total_free);
332 c->mst_node->total_dark = cpu_to_le64(c->lst.total_dark);