]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: mark block bitmap corrupted when found
authorWang Shilong <wshilong@ddn.com>
Sat, 12 May 2018 16:37:58 +0000 (12:37 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 12 May 2018 16:37:58 +0000 (12:37 -0400)
commit8cbbc910ab4d887b51cd8064df17d6e3650db65a
tree9de6d65b6fb966425f5f86ed6bceb7364813f83b
parentb05bcd8462ab6ba99cda19c6a85ea3a784ecdbe4
ext4: mark block bitmap corrupted when found

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

1) block bitmap number is wrong.
2) failed to read block bitmap due to disk errors.
3) double free block bitmaps..
4) some mismatch check with bitmaps vs buddy information.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Liu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
fs/ext4/balloc.c
fs/ext4/mballoc.c