aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-13 05:26:54 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-16 03:31:39 -0400
commitc839e29768059c56ef233586e66a2a66edbe93a3 (patch)
treef4db1482edce7ccfd37d0e701b7359427080722d /fs
parent12346037a71809197b22e223c3a719190a26172d (diff)
UBIFS: improve debugging messages
Print a bit more information is some recovery and replay paths. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ubifs/recovery.c7
-rw-r--r--fs/ubifs/replay.c3
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c
index 3f41a0ce192b..42b4512c46b0 100644
--- a/fs/ubifs/recovery.c
+++ b/fs/ubifs/recovery.c
@@ -1140,12 +1140,11 @@ int ubifs_rcvry_gc_commit(struct ubifs_info *c)
1140 struct ubifs_lprops lp; 1140 struct ubifs_lprops lp;
1141 int err; 1141 int err;
1142 1142
1143 dbg_rcvry("GC head LEB %d, offs %d", wbuf->lnum, wbuf->offs);
1144
1143 c->gc_lnum = -1; 1145 c->gc_lnum = -1;
1144 if (wbuf->lnum == -1 || wbuf->offs == c->leb_size) { 1146 if (wbuf->lnum == -1 || wbuf->offs == c->leb_size)
1145 dbg_rcvry("no GC head: wbuf->lnum %d, wbuf->offs %d",
1146 wbuf->lnum, wbuf->offs);
1147 return grab_empty_leb(c); 1147 return grab_empty_leb(c);
1148 }
1149 1148
1150 err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2); 1149 err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2);
1151 if (err) { 1150 if (err) {
diff --git a/fs/ubifs/replay.c b/fs/ubifs/replay.c
index c29c4687cc52..005266330192 100644
--- a/fs/ubifs/replay.c
+++ b/fs/ubifs/replay.c
@@ -509,7 +509,7 @@ static int replay_bud(struct ubifs_info *c, int lnum, int offs, int jhead,
509 struct ubifs_scan_node *snod; 509 struct ubifs_scan_node *snod;
510 struct ubifs_bud *bud; 510 struct ubifs_bud *bud;
511 511
512 dbg_mnt("replay bud LEB %d, head %d", lnum, jhead); 512 dbg_mnt("replay bud LEB %d, head %d, offs %d", lnum, jhead, offs);
513 if (c->need_recovery) 513 if (c->need_recovery)
514 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, jhead != GCHD); 514 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, jhead != GCHD);
515 else 515 else
@@ -636,6 +636,7 @@ static int replay_bud(struct ubifs_info *c, int lnum, int offs, int jhead,
636 636
637 *dirty = sleb->endpt - offs - used; 637 *dirty = sleb->endpt - offs - used;
638 *free = c->leb_size - sleb->endpt; 638 *free = c->leb_size - sleb->endpt;
639 dbg_mnt("bud LEB %d replied: dirty %d, free %d", lnum, *dirty, *free);
639 640
640out: 641out:
641 ubifs_scan_destroy(sleb); 642 ubifs_scan_destroy(sleb);