Lines Matching refs:lst
261 if (c->lst.empty_lebs < 0 || c->lst.empty_lebs > c->main_lebs - 2) { in validate_master()
266 if (c->lst.idx_lebs < 0 || c->lst.idx_lebs > c->main_lebs - 1) { in validate_master()
271 if (c->lst.total_free < 0 || c->lst.total_free > main_sz || in validate_master()
272 c->lst.total_free & 7) { in validate_master()
277 if (c->lst.total_dirty < 0 || (c->lst.total_dirty & 7)) { in validate_master()
282 if (c->lst.total_used < 0 || (c->lst.total_used & 7)) { in validate_master()
287 if (c->lst.total_free + c->lst.total_dirty + in validate_master()
288 c->lst.total_used > main_sz) { in validate_master()
293 if (c->lst.total_dead + c->lst.total_dark + in validate_master()
294 c->lst.total_used + c->bi.old_idx_sz > main_sz) { in validate_master()
299 if (c->lst.total_dead < 0 || in validate_master()
300 c->lst.total_dead > c->lst.total_free + c->lst.total_dirty || in validate_master()
301 c->lst.total_dead & 7) { in validate_master()
306 if (c->lst.total_dark < 0 || in validate_master()
307 c->lst.total_dark > c->lst.total_free + c->lst.total_dirty || in validate_master()
308 c->lst.total_dark & 7) { in validate_master()
372 c->lst.empty_lebs = le32_to_cpu(c->mst_node->empty_lebs); in ubifs_read_master()
373 c->lst.idx_lebs = le32_to_cpu(c->mst_node->idx_lebs); in ubifs_read_master()
375 c->lst.total_free = le64_to_cpu(c->mst_node->total_free); in ubifs_read_master()
376 c->lst.total_dirty = le64_to_cpu(c->mst_node->total_dirty); in ubifs_read_master()
377 c->lst.total_used = le64_to_cpu(c->mst_node->total_used); in ubifs_read_master()
378 c->lst.total_dead = le64_to_cpu(c->mst_node->total_dead); in ubifs_read_master()
379 c->lst.total_dark = le64_to_cpu(c->mst_node->total_dark); in ubifs_read_master()
401 c->lst.empty_lebs += growth; in ubifs_read_master()
402 c->lst.total_free += growth * (long long)c->leb_size; in ubifs_read_master()
403 c->lst.total_dark += growth * (long long)c->dark_wm; in ubifs_read_master()
412 c->mst_node->empty_lebs = cpu_to_le32(c->lst.empty_lebs); in ubifs_read_master()
413 c->mst_node->total_free = cpu_to_le64(c->lst.total_free); in ubifs_read_master()
414 c->mst_node->total_dark = cpu_to_le64(c->lst.total_dark); in ubifs_read_master()