From: Artem Bityutskiy Date: Tue, 27 Jan 2009 14:12:31 +0000 (+0200) Subject: UBIFS: fix no_chk_data_crc X-Git-Tag: Release-2010-05/1~3^2~98 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36b785b2aa5f058fb48ea76bd9300d2b7e9263e4;p=pandora-kernel.git 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 Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed