• Home
  • Raw
  • Download

Lines Matching refs:lp

185 			struct ubifs_lprops *lp;  in add_to_lpt_heap()  local
187 lp = heap->arr[cpos]; in add_to_lpt_heap()
188 lp->flags &= ~LPROPS_CAT_MASK; in add_to_lpt_heap()
189 lp->flags |= LPROPS_UNCAT; in add_to_lpt_heap()
190 list_add(&lp->list, &c->uncat_list); in add_to_lpt_heap()
521 const struct ubifs_lprops *lp, in ubifs_change_lp() argument
529 struct ubifs_lprops *lprops = (struct ubifs_lprops *)lp; in ubifs_change_lp()
653 const struct ubifs_lprops *lp; in ubifs_change_one_lp() local
657 lp = ubifs_lpt_lookup_dirty(c, lnum); in ubifs_change_one_lp()
658 if (IS_ERR(lp)) { in ubifs_change_one_lp()
659 err = PTR_ERR(lp); in ubifs_change_one_lp()
663 flags = (lp->flags | flags_set) & ~flags_clean; in ubifs_change_one_lp()
664 lp = ubifs_change_lp(c, lp, free, dirty, flags, idx_gc_cnt); in ubifs_change_one_lp()
665 if (IS_ERR(lp)) in ubifs_change_one_lp()
666 err = PTR_ERR(lp); in ubifs_change_one_lp()
692 const struct ubifs_lprops *lp; in ubifs_update_one_lp() local
696 lp = ubifs_lpt_lookup_dirty(c, lnum); in ubifs_update_one_lp()
697 if (IS_ERR(lp)) { in ubifs_update_one_lp()
698 err = PTR_ERR(lp); in ubifs_update_one_lp()
702 flags = (lp->flags | flags_set) & ~flags_clean; in ubifs_update_one_lp()
703 lp = ubifs_change_lp(c, lp, free, lp->dirty + dirty, flags, 0); in ubifs_update_one_lp()
704 if (IS_ERR(lp)) in ubifs_update_one_lp()
705 err = PTR_ERR(lp); in ubifs_update_one_lp()
725 int ubifs_read_one_lp(struct ubifs_info *c, int lnum, struct ubifs_lprops *lp) in ubifs_read_one_lp() argument
740 memcpy(lp, lpp, sizeof(struct ubifs_lprops)); in ubifs_read_one_lp()
960 struct ubifs_lprops *lp; in dbg_check_heap() local
971 lp = ubifs_lpt_lookup(c, lprops->lnum); in dbg_check_heap()
972 if (IS_ERR(lp)) { in dbg_check_heap()
976 if (lprops != lp) { in dbg_check_heap()
978 (size_t)lprops, (size_t)lp, lprops->lnum, in dbg_check_heap()
979 lp->lnum); in dbg_check_heap()
984 lp = heap->arr[j]; in dbg_check_heap()
985 if (lp == lprops) { in dbg_check_heap()
989 if (lp->lnum == lprops->lnum) { in dbg_check_heap()
1016 const struct ubifs_lprops *lp, int in_tree, in scan_check_cb() argument
1021 int cat, lnum = lp->lnum, is_idx = 0, used = 0, free, dirty, ret; in scan_check_cb()
1024 cat = lp->flags & LPROPS_CAT_MASK; in scan_check_cb()
1026 cat = ubifs_categorize_lprops(c, lp); in scan_check_cb()
1027 if (cat != (lp->flags & LPROPS_CAT_MASK)) { in scan_check_cb()
1029 (lp->flags & LPROPS_CAT_MASK), cat); in scan_check_cb()
1057 if (lprops == lp) { in scan_check_cb()
1073 if ((lp->hpos != -1 && heap->arr[lp->hpos]->lnum != lnum) || in scan_check_cb()
1074 lp != heap->arr[lp->hpos]) { in scan_check_cb()
1084 if (lp->free == c->leb_size) { in scan_check_cb()
1090 if (lp->free + lp->dirty == c->leb_size && in scan_check_cb()
1091 !(lp->flags & LPROPS_INDEX)) { in scan_check_cb()
1092 lst->total_free += lp->free; in scan_check_cb()
1093 lst->total_dirty += lp->dirty; in scan_check_cb()
1153 if (lp->free + lp->dirty == c->leb_size && in scan_check_cb()
1155 if ((is_idx && !(lp->flags & LPROPS_INDEX)) || in scan_check_cb()
1157 lp->free == c->leb_size) { in scan_check_cb()
1165 free = lp->free; in scan_check_cb()
1166 dirty = lp->dirty; in scan_check_cb()
1170 if (is_idx && lp->free + lp->dirty == free + dirty && in scan_check_cb()
1183 free = lp->free; in scan_check_cb()
1184 dirty = lp->dirty; in scan_check_cb()
1187 if (lp->free != free || lp->dirty != dirty) in scan_check_cb()
1190 if (is_idx && !(lp->flags & LPROPS_INDEX)) { in scan_check_cb()
1200 if (!is_idx && (lp->flags & LPROPS_INDEX)) { in scan_check_cb()
1211 if (!(lp->flags & LPROPS_INDEX)) in scan_check_cb()
1216 if (!(lp->flags & LPROPS_INDEX)) { in scan_check_cb()
1231 lnum, lp->free, lp->dirty, lp->flags, free, dirty); in scan_check_cb()