[PATCH 2/2][FAT] miss-sync issues on sync mount (miss-sync on utime)

From: Machida, Hiroyuki
Date: Wed Sep 14 2005 - 15:42:03 EST


The 2nd patch fixes miss-sync issue on attribute operations,
like utime.

---
Hiroyuki Machida
Signed-off-by: Hiroyuki Machida <machdia@xxxxxxxxxxxxx>
---
file.c | 4 ++++
1 files changed, 4 insertions(+)

--- linux-2.6.13/fs/fat/file.c 2005-08-29 08:41:01.000000000 +0900
+++ linux-2.6.13.new/fs/fat/file.c 2005-09-11 12:26:51.031743750 +0900
@@ -201,6 +183,10 @@ int fat_notify_change(struct dentry *den
else
mask = sbi->options.fs_fmask;
inode->i_mode &= S_IFMT | (S_IRWXUGO & ~mask);
+
+ if ( (!error) && IS_SYNC(inode)) {
+ error = write_inode_now(inode, 1);
+ }
out:
unlock_kernel();
return error;