diff --git a/fs/ubifs/replay.c b/fs/ubifs/replay.c index ae5c02f22f3e..7f248e41493d 100644 --- a/fs/ubifs/replay.c +++ b/fs/ubifs/replay.c @@ -140,10 +140,10 @@ static int set_bud_lprops(struct ubifs_info *c, struct bud_entry *b) * that the dirty space may temporarily exceed c->leb_size * during the replay. */ - if (dirty != 0) - dbg_mnt("LEB %d lp: %d free %d dirty replay: %d free %d dirty", - b->bud->lnum, lp->free, lp->dirty, b->free, - b->dirty); + if (WARN_ON(dirty != 0)) { + ubifs_err(c, "LEB %d lp free: %d lp dirty: %d b free: %d b dirty: %d dirty: %d", + b->bud->lnum, lp->free, lp->dirty, b->free, b->dirty, dirty); + } } lp = ubifs_change_lp(c, lp, b->free, dirty + b->dirty, lp->flags | LPROPS_TAKEN, 0);