Merge remote-tracking branches 'asoc/fix/ak4671', 'asoc/fix/control', 'asoc/fix/da732...
[linux-2.6-microblaze.git] / fs / jfs / file.c
index 33aa0cc..10815f8 100644 (file)
@@ -39,7 +39,7 @@ int jfs_fsync(struct file *file, loff_t start, loff_t end, int datasync)
                return rc;
 
        mutex_lock(&inode->i_mutex);
-       if (!(inode->i_state & I_DIRTY) ||
+       if (!(inode->i_state & I_DIRTY_ALL) ||
            (datasync && !(inode->i_state & I_DIRTY_DATASYNC))) {
                /* Make sure committed changes hit the disk */
                jfs_flush_journal(JFS_SBI(inode->i_sb)->log, 1);