]> Git Repo - linux.git/blobdiff - fs/orangefs/file.c
Merge branch 'gate-page-refcount' (patches from Dave Hansen)
[linux.git] / fs / orangefs / file.c
index 173e6ea57a47d9818c4a66c37f3187836134c8af..af375e049aae7794f71dd829678d2a601be0e2d2 100644 (file)
@@ -645,16 +645,8 @@ static int orangefs_flush(struct file *file, fl_owner_t id)
         * on an explicit fsync call.  This duplicates historical OrangeFS
         * behavior.
         */
-       struct inode *inode = file->f_mapping->host;
        int r;
 
-       if (inode->i_state & I_DIRTY_TIME) {
-               spin_lock(&inode->i_lock);
-               inode->i_state &= ~I_DIRTY_TIME;
-               spin_unlock(&inode->i_lock);
-               mark_inode_dirty_sync(inode);
-       }
-
        r = filemap_write_and_wait_range(file->f_mapping, 0, LLONG_MAX);
        if (r > 0)
                return 0;
This page took 0.024467 seconds and 4 git commands to generate.