ext4: allocate delalloc blocks before changing journal mode
authorYongqiang Yang <xiaoqiangnk@gmail.com>
Wed, 28 Dec 2011 17:02:13 +0000 (12:02 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 28 Dec 2011 17:02:13 +0000 (12:02 -0500)
commit2aff57b0c052344e8401a8b4a33c2a1ecb0f627c
tree48713b187d571baab9951dace5b8ace86289a654
parent22cdfca5641817060dd724a9c30442f5c0675fcd
ext4: allocate delalloc blocks before changing journal mode

delalloc blocks should be allocated before changing journal mode,
otherwise they can not be allocated and even more truncate on
delalloc blocks could triggre BUG by flushing delalloc buffers.

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