]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] reiserfs: fix key decrementing
authorVladimir Saveliev <vs@namesys.com>
Thu, 12 Apr 2007 06:28:44 +0000 (23:28 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 12 Apr 2007 22:31:42 +0000 (15:31 -0700)
commit8d9a8b49b9c422b9eb55810a7db80c2611f65cac
treec2b4b8d41361d498bdf8abad6fc9d06086bab56d
parent7a8d11ea4373166319d1478753a6bd62695cd0e6
[PATCH] reiserfs: fix key decrementing

This patch fixes a bug in function decrementing a key of stat data item.

Offset of reiserfs keys are compared as signed values.  To set key offset
to maximal possible value maximal signed value has to be used.

This bug is responsible for severe reiserfs filesystem corruption which
shows itself as warning vs-13060.  reiserfsck fixes this corruption by
filesystem tree rebuilding.

Signed-off-by: Vladimir Saveliev <vs@namesys.com>
Cc: <reiserfs-dev@namesys.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/item_ops.c