Artem Bityutskiy 6f7ab6d458 UBIFS: fix no_chk_data_crc
When data CRC checking is disabled, UBIFS returns incorrect return
code from the 'try_read_node()' function (0 instead of 1, which means
CRC error), which make the caller re-read the data node again, but using
a different code patch, so the second read is fine. Thus, we read the
same node twice. And the result of this is that UBIFS is slower
with no_chk_data_crc option than it is with chk_data_crc option.
This patches fixes the problem.

Reported-by: Reuben Dowle <Reuben.Dowle@navico.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2009-01-27 16:25:10 +02:00
..
2009-01-26 12:54:11 +02:00
2008-12-03 13:14:33 +02:00
2008-12-31 14:13:24 +02:00
2009-01-26 12:54:11 +02:00
2009-01-26 12:54:11 +02:00
2009-01-26 12:54:11 +02:00
2009-01-26 12:54:11 +02:00
2008-09-30 11:12:55 +03:00
2009-01-26 12:54:11 +02:00
2009-01-27 16:25:10 +02:00
2008-12-31 14:13:25 +02:00
2008-12-03 13:14:11 +02:00
2008-08-13 11:27:47 +03:00
2009-01-26 12:54:11 +02:00
2008-12-23 12:23:40 +02:00
2008-07-15 17:35:24 +03:00
2008-07-15 17:35:15 +03:00
2008-09-30 11:12:56 +03:00
2008-11-06 11:06:31 +02:00
2008-12-31 14:13:24 +02:00
2008-12-23 12:23:40 +02:00
2008-09-30 11:12:56 +03:00
2009-01-26 18:22:47 +02:00
2008-09-30 11:12:57 +03:00
2009-01-27 16:25:10 +02:00
2009-01-27 16:25:10 +02:00
2008-09-30 11:12:55 +03:00