linux-uconsole/fs/ext4
Frank Mayhar 282d021743 ext4: Make fsync sync new parent directories in no-journal mode
commit 14ece1028b upstream (as of v2.6.34-git13)

Add a new ext4 state to tell us when a file has been newly created; use
that state in ext4_sync_file in no-journal mode to tell us when we need
to sync the parent directory as well as the inode and data itself.  This
fixes a problem in which a panic or power failure may lose the entire
file even when using fsync, since the parent directory entry is lost.

Addresses-Google-Bug: #2480057

Signed-off-by: Frank Mayhar <fmayhar@google.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-08-02 10:21:23 -07:00
..
acl.c ext[234]: move over to 'check_acl' permission model 2009-09-08 11:09:04 -07:00
acl.h ext[234]: move over to 'check_acl' permission model 2009-09-08 11:09:04 -07:00
balloc.c ext4: fix uninit block bitmap initialization when s_meta_first_bg is non-zero 2009-12-14 09:44:59 -08:00
bitmap.c ext4: Change unsigned long to unsigned int 2008-11-05 00:14:04 -05:00
block_validity.c ext4: fix block validity checks so they work correctly with meta_bg 2009-12-14 09:45:01 -08:00
dir.c ext4: Use bitops to read/modify i_flags in struct ext4_inode_info 2010-08-02 10:21:22 -07:00
ext4.h ext4: Make fsync sync new parent directories in no-journal mode 2010-08-02 10:21:23 -07:00
ext4_extents.h ext4: Calculate metadata requirements more accurately 2010-08-02 10:21:12 -07:00
ext4_jbd2.c ext4: Fix BUG_ON at fs/buffer.c:652 in no journal mode 2010-08-02 10:21:12 -07:00
ext4_jbd2.h ext4: Use bitops to read/modify i_flags in struct ext4_inode_info 2010-08-02 10:21:22 -07:00
extents.c ext4: restart ext4_ext_remove_space() after transaction restart 2010-08-02 10:21:22 -07:00
file.c ext4: Use bitops to read/modify i_flags in struct ext4_inode_info 2010-08-02 10:21:22 -07:00
fsync.c ext4: Make fsync sync new parent directories in no-journal mode 2010-08-02 10:21:23 -07:00
hash.c ext4: Add support for non-native signed/unsigned htree hash algorithms 2008-10-28 13:21:44 -04:00
ialloc.c ext4: Use bitops to read/modify i_flags in struct ext4_inode_info 2010-08-02 10:21:22 -07:00
inode.c ext4: Use bitops to read/modify i_flags in struct ext4_inode_info 2010-08-02 10:21:22 -07:00
ioctl.c ext4: Fix compat EXT4_IOC_ADD_GROUP 2010-08-02 10:21:23 -07:00
Kconfig ext4: drop ext4dev compat 2009-10-01 02:21:07 -04:00
Makefile ext4: online defrag -- Add EXT4_IOC_MOVE_EXT ioctl 2009-06-17 19:24:03 -04:00
mballoc.c ext4: Use bitops to read/modify i_flags in struct ext4_inode_info 2010-08-02 10:21:22 -07:00
mballoc.h ext4: Use tracepoints for mb_history trace file 2009-09-30 00:32:42 -04:00
migrate.c ext4: Use bitops to read/modify i_flags in struct ext4_inode_info 2010-08-02 10:21:22 -07:00
move_extent.c ext4: Use bitops to read/modify i_flags in struct ext4_inode_info 2010-08-02 10:21:22 -07:00
namei.c ext4: Make fsync sync new parent directories in no-journal mode 2010-08-02 10:21:23 -07:00
resize.c ext4: check s_log_groups_per_flex in online resize code 2010-08-02 10:21:18 -07:00
super.c ext4: Use bitops to read/modify i_flags in struct ext4_inode_info 2010-08-02 10:21:22 -07:00
symlink.c ext4: Rename ext4dev to ext4 2008-10-10 20:02:48 -04:00
xattr.c ext4: Use bitops to read/modify i_flags in struct ext4_inode_info 2010-08-02 10:21:22 -07:00
xattr.h ext4: Rename ext4dev to ext4 2008-10-10 20:02:48 -04:00
xattr_security.c ext4: move headers out of include/linux 2008-04-29 18:13:32 -04:00
xattr_trusted.c ext4: remove double definitions of xattr macros 2008-07-11 19:27:31 -04:00
xattr_user.c ext4: remove double definitions of xattr macros 2008-07-11 19:27:31 -04:00