Lines Matching refs:lp

189 			struct ubifs_lprops *lp;  in add_to_lpt_heap()  local
191 lp = heap->arr[cpos]; in add_to_lpt_heap()
192 lp->flags &= ~LPROPS_CAT_MASK; in add_to_lpt_heap()
193 lp->flags |= LPROPS_UNCAT; in add_to_lpt_heap()
194 list_add(&lp->list, &c->uncat_list); in add_to_lpt_heap()
527 const struct ubifs_lprops *lp, in ubifs_change_lp() argument
535 struct ubifs_lprops *lprops = (struct ubifs_lprops *)lp; in ubifs_change_lp()
659 const struct ubifs_lprops *lp; in ubifs_change_one_lp() local
663 lp = ubifs_lpt_lookup_dirty(c, lnum); in ubifs_change_one_lp()
664 if (IS_ERR(lp)) { in ubifs_change_one_lp()
665 err = PTR_ERR(lp); in ubifs_change_one_lp()
669 flags = (lp->flags | flags_set) & ~flags_clean; in ubifs_change_one_lp()
670 lp = ubifs_change_lp(c, lp, free, dirty, flags, idx_gc_cnt); in ubifs_change_one_lp()
671 if (IS_ERR(lp)) in ubifs_change_one_lp()
672 err = PTR_ERR(lp); in ubifs_change_one_lp()
698 const struct ubifs_lprops *lp; in ubifs_update_one_lp() local
702 lp = ubifs_lpt_lookup_dirty(c, lnum); in ubifs_update_one_lp()
703 if (IS_ERR(lp)) { in ubifs_update_one_lp()
704 err = PTR_ERR(lp); in ubifs_update_one_lp()
708 flags = (lp->flags | flags_set) & ~flags_clean; in ubifs_update_one_lp()
709 lp = ubifs_change_lp(c, lp, free, lp->dirty + dirty, flags, 0); in ubifs_update_one_lp()
710 if (IS_ERR(lp)) in ubifs_update_one_lp()
711 err = PTR_ERR(lp); in ubifs_update_one_lp()
731 int ubifs_read_one_lp(struct ubifs_info *c, int lnum, struct ubifs_lprops *lp) in ubifs_read_one_lp() argument
746 memcpy(lp, lpp, sizeof(struct ubifs_lprops)); in ubifs_read_one_lp()
966 struct ubifs_lprops *lp; in dbg_check_heap() local
977 lp = ubifs_lpt_lookup(c, lprops->lnum); in dbg_check_heap()
978 if (IS_ERR(lp)) { in dbg_check_heap()
982 if (lprops != lp) { in dbg_check_heap()
984 (size_t)lprops, (size_t)lp, lprops->lnum, in dbg_check_heap()
985 lp->lnum); in dbg_check_heap()
990 lp = heap->arr[j]; in dbg_check_heap()
991 if (lp == lprops) { in dbg_check_heap()
995 if (lp->lnum == lprops->lnum) { in dbg_check_heap()
1022 const struct ubifs_lprops *lp, int in_tree, in scan_check_cb() argument
1027 int cat, lnum = lp->lnum, is_idx = 0, used = 0, free, dirty, ret; in scan_check_cb()
1030 cat = lp->flags & LPROPS_CAT_MASK; in scan_check_cb()
1032 cat = ubifs_categorize_lprops(c, lp); in scan_check_cb()
1033 if (cat != (lp->flags & LPROPS_CAT_MASK)) { in scan_check_cb()
1035 (lp->flags & LPROPS_CAT_MASK), cat); in scan_check_cb()
1063 if (lprops == lp) { in scan_check_cb()
1079 if ((lp->hpos != -1 && heap->arr[lp->hpos]->lnum != lnum) || in scan_check_cb()
1080 lp != heap->arr[lp->hpos]) { in scan_check_cb()
1094 if (lp->free == c->leb_size) { in scan_check_cb()
1100 if (lp->free + lp->dirty == c->leb_size && in scan_check_cb()
1101 !(lp->flags & LPROPS_INDEX)) { in scan_check_cb()
1102 lst->total_free += lp->free; in scan_check_cb()
1103 lst->total_dirty += lp->dirty; in scan_check_cb()
1159 if (lp->free + lp->dirty == c->leb_size && in scan_check_cb()
1161 if ((is_idx && !(lp->flags & LPROPS_INDEX)) || in scan_check_cb()
1163 lp->free == c->leb_size) { in scan_check_cb()
1171 free = lp->free; in scan_check_cb()
1172 dirty = lp->dirty; in scan_check_cb()
1176 if (is_idx && lp->free + lp->dirty == free + dirty && in scan_check_cb()
1189 free = lp->free; in scan_check_cb()
1190 dirty = lp->dirty; in scan_check_cb()
1193 if (lp->free != free || lp->dirty != dirty) in scan_check_cb()
1196 if (is_idx && !(lp->flags & LPROPS_INDEX)) { in scan_check_cb()
1206 if (!is_idx && (lp->flags & LPROPS_INDEX)) { in scan_check_cb()
1217 if (!(lp->flags & LPROPS_INDEX)) in scan_check_cb()
1222 if (!(lp->flags & LPROPS_INDEX)) { in scan_check_cb()
1237 lnum, lp->free, lp->dirty, lp->flags, free, dirty); in scan_check_cb()