]> err.no Git - linux-2.6/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)
commit6d205f120547043de663315698dcf5f0eaa31b5c
treec2b4b8d41361d498bdf8abad6fc9d06086bab56d
parent505fa2c4a2f125a70951926dfb22b9cf273994f1
[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