ext4: Add BUG_ON debugging checks to noalloc_get_block_write()
authorTheodore Ts'o <tytso@mit.edu>
Tue, 12 May 2009 17:51:29 +0000 (13:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 12 May 2009 17:51:29 +0000 (13:51 -0400)
commita2dc52b5d1d8cc280b3e795abf1c80ac8c49f30c
tree2f425d897dfdab9f2a5997f9801c6ccbea7c1323
parentb920c75502cb2c48654ef196d647c8eb81ab608a
ext4: Add BUG_ON debugging checks to noalloc_get_block_write()

Enforce that noalloc_get_block_write() is only called to map one block
at a time, and that it always is successful in finding a mapping for
given an inode's logical block block number if it is called with
create == 1.

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