|
@@ -64,7 +64,7 @@ int file_fsync(struct file *filp, struct dentry *dentry, int datasync)
|
|
/* sync the superblock to buffers */
|
|
/* sync the superblock to buffers */
|
|
sb = inode->i_sb;
|
|
sb = inode->i_sb;
|
|
lock_super(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);
|
|
sb->s_op->write_super(sb);
|
|
unlock_super(sb);
|
|
unlock_super(sb);
|
|
|
|
|