Lines Matching defs: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
353 pack_bits(c, &addr, &pos, pnode->lprops[i].dirty >> 3,
415 pack_bits(c, &addr, &pos, ltab[i].dirty, c->lpt_spc_bits);
447 * ubifs_add_lpt_dirt - add dirty space to LPT LEB properties.
449 * @lnum: LEB number to which to add dirty space
450 * @dirty: amount of dirty space to add
452 void ubifs_add_lpt_dirt(struct ubifs_info *c, int lnum, int dirty)
454 if (!dirty || !lnum)
457 lnum, dirty, c->ltab[lnum - c->lpt_first].dirty);
459 c->ltab[lnum - c->lpt_first].dirty += dirty;
467 * @dirty: amount of dirty space
469 static void set_ltab(struct ubifs_info *c, int lnum, int free, int dirty)
471 dbg_lp("LEB %d free %d dirty %d to %d %d",
473 c->ltab[lnum - c->lpt_first].dirty, free, dirty);
476 c->ltab[lnum - c->lpt_first].dirty = dirty;
480 * ubifs_add_nnode_dirt - add dirty space to LPT LEB properties.
501 * 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;
684 pnode->lprops[0].dirty = 0;
688 pnode->lprops[1].dirty = 0;
990 lprops->dirty = ubifs_unpack_bits(c, &addr, &pos, c->space_bits);
991 lprops->dirty <<= 3;
1054 int dirty = ubifs_unpack_bits(c, &addr, &pos, c->lpt_spc_bits);
1056 if (free < 0 || free > c->leb_size || dirty < 0 ||
1057 dirty > c->leb_size || free + dirty > c->leb_size)
1061 c->ltab[i].dirty = dirty;
1161 int dirty = pnode->lprops[i].dirty;
1166 if (dirty < 0 || dirty > c->leb_size || (dirty & 7))
1168 if (dirty + free > c->leb_size)
1498 dbg_lp("LEB %d, free %d, dirty %d, flags %d", lnum,
1499 pnode->lprops[iip].free, pnode->lprops[iip].dirty,
1638 dbg_lp("LEB %d, free %d, dirty %d, flags %d", lnum,
1639 pnode->lprops[iip].free, pnode->lprops[iip].dirty,
2351 ubifs_err(c, "LEB %d cat %d free %d dirty %d",
2353 lprops->dirty);
2359 if (lprops->free + lprops->dirty != c->leb_size) {
2360 ubifs_err(c, "LEB %d cat %d free %d dirty %d",
2362 lprops->dirty);