]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: replace BUG_ON with WARN_ON in mb_find_extent()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 23 Jan 2017 00:35:52 +0000 (19:35 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 23 Jan 2017 00:35:52 +0000 (19:35 -0500)
commitc5d466ed1db60c865657dfb9131415ab131a657b
treea438b55c0d83f1ba15f97729dc07509e57385eb8
parente05317a3297f57e396c511605f83347e19ae3457
ext4: replace BUG_ON with WARN_ON in mb_find_extent()

The last BUG_ON in mb_find_extent() is apparently triggering in some
rare cases.  Most of the time it indicates a bug in the buddy bitmap
algorithms, but there are some weird cases where it can trigger when
buddy bitmap is still in memory, but the block bitmap has to be read
from disk, and there is disk or memory corruption such that the block
bitmap and the buddy bitmap are out of sync.

Google-Bug-Id: #33702157

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c