]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/ubifs/debug.c
UBIFS: correct data corruption range
authorMats Kärrman <Mats.Karrman@tritech.se>
Wed, 21 Aug 2013 13:24:49 +0000 (13:24 +0000)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sat, 26 Oct 2013 10:33:38 +0000 (11:33 +0100)
commit58a4e23703b22c331b01fbd0c12161aadaa6d50b
treeb7fde07e8a87483be5d9398d3a8f7b2e1e75f5b2
parent7203db97b7378c2571797c13aa89327a2c487ea1
UBIFS: correct data corruption range

With power-cut emulation, it is possible that sometimes no data at all is
corrupted and that confusing messages are printed due to errors in the
computation of data corruption range.

[1] The start of the range should be [0..len-1], not [0..len].
[2] The end of the range should always be at least 1 greater than the start.

Signed-off-by: Mats Karrman <mats.karrman@tritech.se>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
fs/ubifs/debug.c