ext3: Add replace-on-rename hueristics for data=writeback mode
authorTheodore Ts'o <tytso@mit.edu>
Fri, 3 Apr 2009 05:34:49 +0000 (01:34 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 3 Apr 2009 05:34:49 +0000 (01:34 -0400)
commite7c8f5079ed9ec9e6eb1abe3defc5fb4ebfdf1cb
treefd0191b45890e37b5e20a2d7e200d34a6432eb7e
parentf7ab34ea723ed304b19698efca85d6f40cecd99b
ext3: Add replace-on-rename hueristics for data=writeback mode

In data=writeback mode, start an asynchronous flush when renaming a
file on top of an already-existing file.  This lowers the probability
of data loss in the case of applications that attempt to replace a
file via using rename().

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