Messages in this thread Patch in this message |  | | Date | Thu, 15 Sep 2005 05:39:32 +0900 | | From | "Machida, Hiroyuki" <> | | | Subject | [PATCH 2/2][FAT] miss-sync issues on sync mount (miss-sync on utime) |
The 2nd patch fixes miss-sync issue on attribute operations,
like utime.
---
Hiroyuki MachidaSigned-off-by: Hiroyuki Machida <machdia@sm.sony.co.jp>
---
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; |  |