diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-05-25 23:51:48 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-06-01 05:29:05 -0400 |
commit | ab75950b11e74145ffe61376ac073d56645aab8a (patch) | |
tree | 8c4a2548e00f6ed83fc209edcccc729fac76708e /fs/ubifs/recovery.c | |
parent | 55922c9d1b84b89cb946c777fddccb3247e7df2c (diff) |
UBIFS: supress false error messages
Commit ab51afe05273741f72383529ef488aa1ea598ec6 was a good clean-up, but
it introduced a regression - now UBIFS prints scary error messages during
recovery on all corrupted nodes, even though the corruptions are expected
(due to a power cut). This patch fixes the issue.
Additionally fix a typo in a commentary introduced by the same commit.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/recovery.c')
-rw-r--r-- | fs/ubifs/recovery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ubifs/recovery.c b/fs/ubifs/recovery.c index 731d9e2e7b50..95e24183b710 100644 --- a/fs/ubifs/recovery.c +++ b/fs/ubifs/recovery.c | |||
@@ -635,7 +635,7 @@ struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum, | |||
635 | * Scan quietly until there is an error from which we cannot | 635 | * Scan quietly until there is an error from which we cannot |
636 | * recover | 636 | * recover |
637 | */ | 637 | */ |
638 | ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 0); | 638 | ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); |
639 | if (ret == SCANNED_A_NODE) { | 639 | if (ret == SCANNED_A_NODE) { |
640 | /* A valid node, and not a padding node */ | 640 | /* A valid node, and not a padding node */ |
641 | struct ubifs_ch *ch = buf; | 641 | struct ubifs_ch *ch = buf; |
@@ -701,7 +701,7 @@ struct ubifs_scan_leb *ubifs_recover_leb(struct ubifs_info *c, int lnum, | |||
701 | * While we are in the middle of the same min. I/O unit keep dropping | 701 | * While we are in the middle of the same min. I/O unit keep dropping |
702 | * nodes. So basically, what we want is to make sure that the last min. | 702 | * nodes. So basically, what we want is to make sure that the last min. |
703 | * I/O unit where we saw the corruption is dropped completely with all | 703 | * I/O unit where we saw the corruption is dropped completely with all |
704 | * the uncorrupted node which may possibly sit there. | 704 | * the uncorrupted nodes which may possibly sit there. |
705 | * | 705 | * |
706 | * In other words, let's name the min. I/O unit where the corruption | 706 | * In other words, let's name the min. I/O unit where the corruption |
707 | * starts B, and the previous min. I/O unit A. The below code tries to | 707 | * starts B, and the previous min. I/O unit A. The below code tries to |