fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / fs / ext3 / fsync.c
index 0b6a459..dd1fd3c 100644 (file)
@@ -8,14 +8,14 @@
  *                      Universite Pierre et Marie Curie (Paris VI)
  *  from
  *  linux/fs/minix/truncate.c   Copyright (C) 1991, 1992  Linus Torvalds
- * 
+ *
  *  ext3fs fsync primitive
  *
  *  Big-endian to little-endian byte-swapping/bitmaps by
  *        David S. Miller (davem@caip.rutgers.edu), 1995
- * 
+ *
  *  Removed unnecessary code duplication for little endian machines
- *  and excessive __inline__s. 
+ *  and excessive __inline__s.
  *        Andi Kleen, 1997
  *
  * Major simplications and cleanup - we only need to do the metadata, because
@@ -49,10 +49,6 @@ int ext3_sync_file(struct file * file, struct dentry *dentry, int datasync)
 
        J_ASSERT(ext3_journal_current_handle() == 0);
 
-       smp_mb();               /* prepare for lockless i_state read */
-       if (!(inode->i_state & I_DIRTY))
-               goto out;
-
        /*
         * data=writeback:
         *  The caller's filemap_fdatawrite()/wait will sync the data.