OSDN Git Service

ext4: mark inode bitmap corrupted when found
authorWang Shilong <wshilong@ddn.com>
Sat, 12 May 2018 16:15:21 +0000 (12:15 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 12 May 2018 16:15:21 +0000 (12:15 -0400)
commit206f6d552d0c0596cbc076a3249f7182f08a35d9
treeab66a498dc371306398989996adcb7fa4fab5788
parentdb79e6d1fb1f715c961bd880101362e07369de23
ext4: mark inode bitmap corrupted when found

There are still some cases that we missed to set
block bitmaps corrupted bit properly:

1)inode bitmap number is wrong.
2)failed to read block bitmap due to disk errors.
3)double allocations from bitmap

Also remove a duplicated call ext4_error() afer
ext4_read_inode_bitmap(), as ext4_error() have been
called inside ext4_read_inode_bitmap() properly.

Signed-off-by: Wang Shilong <wshilong@ddn.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
fs/ext4/ialloc.c