xfs: implement optimized fdatasync
[deliverable/linux.git] / fs / xfs / linux-2.6 / xfs_iops.c
index e8566bbf0f00ffeb2154bee1b351cdcf402c4985..61a99608731e641fde3aac01c0c38c2fbcb51cea 100644 (file)
@@ -91,6 +91,16 @@ xfs_mark_inode_dirty_sync(
                mark_inode_dirty_sync(inode);
 }
 
+void
+xfs_mark_inode_dirty(
+       xfs_inode_t     *ip)
+{
+       struct inode    *inode = VFS_I(ip);
+
+       if (!(inode->i_state & (I_WILL_FREE|I_FREEING|I_CLEAR)))
+               mark_inode_dirty(inode);
+}
+
 /*
  * Change the requested timestamp in the given inode.
  * We don't lock across timestamp updates, and we don't log them but
This page took 0.026149 seconds and 5 git commands to generate.