From: Frank Mayhar Date: Mon, 17 May 2010 12:00:00 +0000 (-0400) Subject: ext4: Make fsync sync new parent directories in no-journal mode X-Git-Tag: v2.6.35-rc1~39^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14ece1028b3ed53ffec1b1213ffc6acaf79ad77c;p=pandora-kernel.git ext4: Make fsync sync new parent directories in no-journal mode 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 Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed