ext4: Automatically allocate delay allocated blocks on rename
commitc90567322fbdc509411d75b908ed8257a1b938ed
authorTheodore Ts'o <tytso@mit.edu>
Tue, 24 Feb 2009 09:05:27 +0000 (24 04:05 -0500)
committerZhang Le <r0bertz@gentoo.org>
Fri, 20 Mar 2009 11:32:44 +0000 (20 19:32 +0800)
tree708ec4c929f1fc39a7ac83878827058714115a30
parent53a8705c08cf4a9ffe954c36ca2ca7b5ea8887d7
ext4: Automatically allocate delay allocated blocks on rename

ext4: Automatically allocate delay allocated blocks on rename

When renaming a file such that a link to another inode is overwritten,
force any delay allocated blocks that to be allocated so that if the
filesystem is mounted with data=ordered, the data blocks will be
pushed out to disk along with the journal commit.  Many application
programs expect this, so we do this to avoid zero length files if the
system crashes unexpectedly.

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