Home
last modified time | relevance | path

Searched refs:lst (Results 1 – 12 of 12) sorted by relevance

/fs/ubifs/
Dmaster.c261 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()
[all …]
Dlprops.c535 ubifs_assert(c, c->lst.empty_lebs >= 0 && in ubifs_change_lp()
536 c->lst.empty_lebs <= c->main_lebs); in ubifs_change_lp()
539 ubifs_assert(c, c->lst.taken_empty_lebs >= 0); in ubifs_change_lp()
540 ubifs_assert(c, c->lst.taken_empty_lebs <= c->lst.empty_lebs); in ubifs_change_lp()
541 ubifs_assert(c, !(c->lst.total_free & 7) && !(c->lst.total_dirty & 7)); in ubifs_change_lp()
542 ubifs_assert(c, !(c->lst.total_dead & 7) && !(c->lst.total_dark & 7)); in ubifs_change_lp()
543 ubifs_assert(c, !(c->lst.total_used & 7)); in ubifs_change_lp()
558 c->lst.taken_empty_lebs -= 1; in ubifs_change_lp()
565 c->lst.total_dead -= old_spc; in ubifs_change_lp()
567 c->lst.total_dark -= ubifs_calc_dark(c, old_spc); in ubifs_change_lp()
[all …]
Dbudget.c199 available = c->main_bytes - c->lst.total_used; in ubifs_calc_available()
223 available -= c->lst.total_dead; in ubifs_calc_available()
231 available -= c->lst.total_dark; in ubifs_calc_available()
239 if (c->lst.idx_lebs > min_idx_lebs) { in ubifs_calc_available()
240 subtract_lebs = c->lst.idx_lebs - min_idx_lebs; in ubifs_calc_available()
299 if (min_idx_lebs > c->lst.idx_lebs) in do_budget_space()
300 rsvd_idx_lebs = min_idx_lebs - c->lst.idx_lebs; in do_budget_space()
326 lebs = c->lst.empty_lebs + c->freeable_cnt + c->idx_gc_cnt - in do_budget_space()
327 c->lst.taken_empty_lebs; in do_budget_space()
682 if (c->bi.min_idx_lebs > c->lst.idx_lebs) in ubifs_get_free_space_nolock()
[all …]
Dfind.c58 n = c->lst.empty_lebs + c->freeable_cnt - in valuable()
59 c->lst.taken_empty_lebs; in valuable()
234 lebs = c->lst.empty_lebs + c->idx_gc_cnt; in ubifs_find_dirty_leb()
235 lebs += c->freeable_cnt - c->lst.taken_empty_lebs; in ubifs_find_dirty_leb()
243 if (c->bi.min_idx_lebs >= c->lst.idx_lebs) { in ubifs_find_dirty_leb()
244 rsvd_idx_lebs = c->bi.min_idx_lebs - c->lst.idx_lebs; in ubifs_find_dirty_leb()
267 exclude_index = (c->bi.min_idx_lebs >= c->lst.idx_lebs); in ubifs_find_dirty_leb()
492 if (c->bi.min_idx_lebs > c->lst.idx_lebs) in ubifs_find_free_space()
493 rsvd_idx_lebs = c->bi.min_idx_lebs - c->lst.idx_lebs; in ubifs_find_free_space()
496 lebs = c->lst.empty_lebs + c->freeable_cnt + c->idx_gc_cnt - in ubifs_find_free_space()
[all …]
Dcommit.c101 struct ubifs_lp_stats lst; in do_commit() local
144 ubifs_get_lp_stats(c, &lst); in do_commit()
178 c->mst_node->empty_lebs = cpu_to_le32(lst.empty_lebs); in do_commit()
179 c->mst_node->idx_lebs = cpu_to_le32(lst.idx_lebs); in do_commit()
180 c->mst_node->total_free = cpu_to_le64(lst.total_free); in do_commit()
181 c->mst_node->total_dirty = cpu_to_le64(lst.total_dirty); in do_commit()
182 c->mst_node->total_used = cpu_to_le64(lst.total_used); in do_commit()
183 c->mst_node->total_dead = cpu_to_le64(lst.total_dead); in do_commit()
184 c->mst_node->total_dark = cpu_to_le64(lst.total_dark); in do_commit()
Dmisc.h257 ubifs_assert(c, c->lst.empty_lebs >= 0 && in ubifs_release_lprops()
258 c->lst.empty_lebs <= c->main_lebs); in ubifs_release_lprops()
Ddebug.c600 void ubifs_dump_lstats(const struct ubifs_lp_stats *lst) in ubifs_dump_lstats() argument
604 current->pid, lst->empty_lebs, lst->idx_lebs); in ubifs_dump_lstats()
606 lst->taken_empty_lebs, lst->total_free, lst->total_dirty); in ubifs_dump_lstats()
608 lst->total_used, lst->total_dark, lst->total_dead); in ubifs_dump_lstats()
775 struct ubifs_lp_stats lst; in ubifs_dump_lprops() local
778 ubifs_get_lp_stats(c, &lst); in ubifs_dump_lprops()
779 ubifs_dump_lstats(&lst); in ubifs_dump_lprops()
995 memcpy(&d->saved_lst, &c->lst, sizeof(struct ubifs_lp_stats)); in dbg_save_space_info()
1042 struct ubifs_lp_stats lst; in dbg_check_space_info() local
1068 ubifs_get_lp_stats(c, &lst); in dbg_check_space_info()
[all …]
Dtnc_commit.c362 c->gap_lebs = kmalloc_array(c->lst.idx_lebs + 1, sizeof(int), in layout_in_gaps()
367 old_idx_lebs = c->lst.idx_lebs; in layout_in_gaps()
369 ubifs_assert(c, p < c->lst.idx_lebs); in layout_in_gaps()
404 old_idx_lebs < c->lst.idx_lebs) { in layout_in_gaps()
405 old_idx_lebs = c->lst.idx_lebs; in layout_in_gaps()
806 dbg_cmt("number of index LEBs %d", c->lst.idx_lebs); in ubifs_tnc_start_commit()
Dsuper.c1242 if (c->lst.total_free + c->lst.total_dirty < c->dark_wm) { in check_free_space()
1547 ubifs_assert(c, c->lst.taken_empty_lebs > 0); in mount_ubifs()
1550 ubifs_assert(c, c->lst.taken_empty_lebs > 0); in mount_ubifs()
1589 dbg_gen("index LEBs: %d", c->lst.idx_lebs); in mount_ubifs()
2052 ubifs_assert(c, c->lst.taken_empty_lebs > 0); in ubifs_remount_fs()
Ddebug.h248 void ubifs_dump_lstats(const struct ubifs_lp_stats *lst);
Dubifs.h1394 struct ubifs_lp_stats lst; member
2007 void ubifs_get_lp_stats(struct ubifs_info *c, struct ubifs_lp_stats *lst);
/fs/nfsd/
Dnfs4state.c7163 struct nfs4_ol_stateid *lst; in find_lock_stateid() local
7169 list_for_each_entry(lst, &ost->st_locks, st_locks) { in find_lock_stateid()
7170 if (lst->st_stateowner == &lo->lo_owner) { in find_lock_stateid()
7171 refcount_inc(&lst->st_stid.sc_count); in find_lock_stateid()
7172 return lst; in find_lock_stateid()
7231 struct nfs4_ol_stateid *lst; in find_or_create_lock_stateid() local
7237 lst = find_lock_stateid(lo, ost); in find_or_create_lock_stateid()
7239 if (lst != NULL) { in find_or_create_lock_stateid()
7240 if (nfsd4_lock_ol_stateid(lst) == nfs_ok) in find_or_create_lock_stateid()
7242 nfs4_put_stid(&lst->st_stid); in find_or_create_lock_stateid()
[all …]