ext4: Add auto_da_alloc mount option
commitb1ed60477aaa7fefbfa109220e7d709577418bf0
authorTheodore Ts'o <tytso@mit.edu>
Tue, 2 Jun 2009 12:07:50 +0000 (2 08:07 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Jun 2009 16:40:32 +0000 (15 09:40 -0700)
tree56f337620f8f6f8d1b5af0439d7ca75269f5e2f0
parentffe15619ef5a2e9108d13d822a9b475afb044155
ext4: Add auto_da_alloc mount option

(cherry picked from commit afd4672dc7610b7feef5190168aa917cc2e417e4)

Add a mount option which allows the user to disable automatic
allocation of blocks whose allocation by delayed allocation when the
file was originally truncated or when the file is renamed over an
existing file.  This feature is intended to save users from the
effects of naive application writers, but it reduces the effectiveness
of the delayed allocation code.  This mount option disables this
safety feature, which may be desirable for prodcutions systems where
the risk of unclean shutdowns or unexpected system crashes is low.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/ext4.h
fs/ext4/inode.c
fs/ext4/namei.c
fs/ext4/super.c