Skip to content

Commit 098e7f1

Browse files
committed
Merge tag 'upstream-3.12-rc1' of git://git.infradead.org/linux-ubifs
Pull ubifs fix from Artem Bityutskiy: "Just one patch which fixes the power-cut recovery testing mode. I'll start using a single UBI/UBIFS tree instead of 2 trees from now on. So in the future you'll get 1 small pull request instead of 2 tiny ones" * tag 'upstream-3.12-rc1' of git://git.infradead.org/linux-ubifs: UBIFS: remove invalid warn msg with tst_recovery enabled
2 parents d8efd82 + c23e9b7 commit 098e7f1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

fs/ubifs/debug.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2587,10 +2587,11 @@ int dbg_leb_write(struct ubifs_info *c, int lnum, const void *buf,
25872587
return -EROFS;
25882588

25892589
failing = power_cut_emulated(c, lnum, 1);
2590-
if (failing)
2590+
if (failing) {
25912591
len = corrupt_data(c, buf, len);
2592-
ubifs_warn("actually write %d bytes to LEB %d:%d (the buffer was corrupted)",
2593-
len, lnum, offs);
2592+
ubifs_warn("actually write %d bytes to LEB %d:%d (the buffer was corrupted)",
2593+
len, lnum, offs);
2594+
}
25942595
err = ubi_leb_write(c->ubi, lnum, buf, offs, len);
25952596
if (err)
25962597
return err;

0 commit comments

Comments
 (0)