]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ext4: Automatically allocate delay allocated blocks on rename
authorTheodore Ts'o <tytso@mit.edu>
Tue, 2 Jun 2009 12:07:48 +0000 (08:07 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Jun 2009 16:40:30 +0000 (09:40 -0700)
commitf8d9f45f2368d85328f784c84854ca2cec8e38ea
treeac09e05a621b5a16be49bacb54e2b047d580c447
parent23ae18d466ab83fc4b9829b331ee82899bccdeff
ext4: Automatically allocate delay allocated blocks on rename

(cherry picked from commit 8750c6d5fcbd3342b3d908d157f81d345c5325a7)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/namei.c