]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/xfs/xfs_inode_item.c
xfs: Use delayed write for inodes rather than async V2
[net-next-2.6.git] / fs / xfs / xfs_inode_item.c
index 48ec1c0b23ce65a84cc53212e4ed798830d2f3f1..207553e829544f0c4fef96dc9245efdbd1207fc7 100644 (file)
@@ -866,10 +866,14 @@ xfs_inode_item_push(
               iip->ili_format.ilf_fields != 0);
 
        /*
-        * Write out the inode.  The completion routine ('iflush_done') will
-        * pull it from the AIL, mark it clean, unlock the flush lock.
+        * Push the inode to it's backing buffer. This will not remove the
+        * inode from the AIL - a further push will be required to trigger a
+        * buffer push. However, this allows all the dirty inodes to be pushed
+        * to the buffer before it is pushed to disk. THe buffer IO completion
+        * will pull th einode from the AIL, mark it clean and unlock the flush
+        * lock.
         */
-       (void) xfs_iflush(ip, XFS_IFLUSH_ASYNC);
+       (void) xfs_iflush(ip, 0);
        xfs_iunlock(ip, XFS_ILOCK_SHARED);
 
        return;