]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: add WARN_ON to check the length of allocated blocks
authorZheng Liu <wenqing.lz@taobao.com>
Mon, 29 Jul 2013 16:51:42 +0000 (12:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 29 Jul 2013 16:51:42 +0000 (12:51 -0400)
commitd9f2edf8a0a4ab5a0c3b600c56674767d7d15b47
tree163882d4f6c13c064ad522127990e5eab23d8d94
parent51cbae370e96784361039e868c91d66c416fe4f2
ext4: add WARN_ON to check the length of allocated blocks

In commit 4708bce2: ext4: add self-testing infrastructure to do a
sanity check, some sanity checks were added in map_blocks to make sure
'retval == map->m_len'.

Enable these checks by default and report any assertion failures using
ext4_warning() and WARN_ON() since they can help us to figure out some
bugs that are otherwise hard to hit.

Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c