Lines Matching defs:dirty
69 * @dirty: dirty bytes in the bud
76 int dirty;
80 * set_bud_lprops - set free and dirty space used by a bud.
91 int err = 0, dirty;
101 dirty = lp->dirty;
102 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) {
107 * @lp->dirty == 0, but that is not the case. The reason is that
110 * resets the free and dirty space without recording it
118 * However we do need to subtract from the dirty space the
122 dbg_mnt("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum,
123 lp->free, lp->dirty);
124 dbg_gc("bud LEB %d was GC'd (%d free, %d dirty)", b->bud->lnum,
125 lp->free, lp->dirty);
126 dirty -= c->leb_size - lp->free;
128 * If the replay order was perfect the dirty space would now be
131 * that the dirty space may temporarily exceed c->leb_size
134 if (dirty != 0)
135 dbg_mnt("LEB %d lp: %d free %d dirty replay: %d free %d dirty",
136 b->bud->lnum, lp->free, lp->dirty, b->free,
137 b->dirty);
139 lp = ubifs_change_lp(c, lp, b->free, dirty + b->dirty,
156 * set_buds_lprops - set free and dirty space for all replayed buds.
712 * how much of these data are dirty and update lprops with this
822 b->dirty = sleb->endpt - offs - used;
824 dbg_mnt("bud LEB %d replied: dirty %d, free %d",
825 lnum, b->dirty, b->free);
1174 * memory data structures related to uncommitted journal are built (dirty TNC