]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Call ext4_jbd2_file_inode() after zeroing block
authorLukas Czerner <lczerner@redhat.com>
Tue, 28 May 2013 03:32:35 +0000 (23:32 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 28 May 2013 03:32:35 +0000 (23:32 -0400)
commitf5797aa641dd8021454c925c600ccee72814c318
tree036770cd667c43ade87485d4aab5f25e90308821
parent4efecfa1fffc1a7f192393451a6fa92b01826765
ext4: Call ext4_jbd2_file_inode() after zeroing block

In data=ordered mode we should call ext4_jbd2_file_inode() so that crash
after the truncate transaction has committed does not expose stall data
in the tail of the block.

Thanks Jan Kara for pointing that out.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c