author: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> 2008-04-29 00:59:42 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2008-04-29 08:06:06 -0700
commit: 762873c251b056c6c1b29e83a4dabafb064e5421
parent: 8f0cfa52a1d4ffacd8e7de906d19662f5da58d58
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/sync.c b/fs/sync.c
index 7cd005ea7639..228e17b5e9ee 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -64,7 +64,7 @@ int file_fsync(struct file *filp, struct dentry *dentry, int datasync)
/* sync the superblock to buffers */
sb = inode->i_sb;
lock_super(sb);
- if (sb->s_op->write_super)
+ if (sb->s_dirt && sb->s_op->write_super)
sb->s_op->write_super(sb);
unlock_super(sb);