Lines Matching refs:dirty

26  * eraseblocks reusable. In the case of the big model, dirty eraseblocks are
28 * that LEB as dirty, and then only the dirty nodes are written out. Also, in
360 pack_bits(&addr, &pos, pnode->lprops[i].dirty >> 3,
422 pack_bits(&addr, &pos, ltab[i].dirty, c->lpt_spc_bits);
454 * ubifs_add_lpt_dirt - add dirty space to LPT LEB properties.
456 * @lnum: LEB number to which to add dirty space
457 * @dirty: amount of dirty space to add
459 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty)
461 if (!dirty || !lnum)
464 lnum, dirty, c->ltab[lnum - c->lpt_first].dirty);
466 c->ltab[lnum - c->lpt_first].dirty += dirty;
474 * @dirty: amount of dirty space
476 static void set_ltab(struct ubifs_info *c, int lnum, int free, int dirty)
478 dbg_lp("LEB %d free %d dirty %d to %d %d",
480 c->ltab[lnum - c->lpt_first].dirty, free, dirty);
483 c->ltab[lnum - c->lpt_first].dirty = dirty;
487 * ubifs_add_nnode_dirt - add dirty space to LPT LEB properties.
508 * add_pnode_dirt - add dirty space to LPT LEB properties.
644 ltab[i].dirty = 0;
661 pnode->lprops[0].dirty = iopos - node_sz;
667 pnode->lprops[1].dirty = iopos - node_sz;
680 pnode->lprops[0].dirty = 0;
684 pnode->lprops[1].dirty = 0;
977 lprops->dirty = ubifs_unpack_bits(&addr, &pos, c->space_bits);
978 lprops->dirty <<= 3;
1041 int dirty = ubifs_unpack_bits(&addr, &pos, c->lpt_spc_bits);
1043 if (free < 0 || free > c->leb_size || dirty < 0 ||
1044 dirty > c->leb_size || free + dirty > c->leb_size)
1048 c->ltab[i].dirty = dirty;
1150 int dirty = pnode->lprops[i].dirty;
1155 if (dirty < 0 || dirty > c->leb_size || (dirty & 7))
1157 if (dirty + free > c->leb_size)
1473 dbg_lp("LEB %d, free %d, dirty %d, flags %d", lnum,
1474 pnode->lprops[iip].free, pnode->lprops[iip].dirty,
1615 dbg_lp("LEB %d, free %d, dirty %d, flags %d", lnum,
1616 pnode->lprops[iip].free, pnode->lprops[iip].dirty,
2201 ubifs_err(c, "LEB %d cat %d free %d dirty %d",
2203 lprops->dirty);
2209 if (lprops->free + lprops->dirty != c->leb_size) {
2210 ubifs_err(c, "LEB %d cat %d free %d dirty %d",
2212 lprops->dirty);