]> git.baikalelectronics.ru Git - kernel.git/commit
address hfs on-disk corruption robustness review comments
authorEric Sandeen <sandeen@redhat.com>
Wed, 6 Feb 2008 09:37:10 +0000 (01:37 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 6 Feb 2008 18:41:05 +0000 (10:41 -0800)
commitf18edfe83f8e282b87250ef35b67f38fda07da27
treed687d90390073aeb0bda273b7b9f051a36f5d892
parent3752bec1d8dd830cbcd51b1ea9f91ca9bd2130d6
address hfs on-disk corruption robustness review comments

Address Roman's review comments for the previously sent on-disk
corruption hfs robustness patch.

- use 0 as a failure value, rather than making a new macro HFS_BAD_KEYLEN,
  and use a switch statement instead of if's.

- Add new fail: target to __hfs_brec_find to skip assignments using bad
  values when exiting with a failure.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hfs/bfind.c
fs/hfs/brec.c
fs/hfs/btree.c
fs/hfs/hfs.h