]> git.hungrycats.org Git - linux/commitdiff
Avoid looping in write_inode_now since the sync_one changes now ensure __sync_one
authorBenjamin LaHaise <bcrl@toomuch.toronto.redhat.com>
Mon, 11 Mar 2002 09:59:09 +0000 (04:59 -0500)
committerBenjamin LaHaise <bcrl@toomuch.toronto.redhat.com>
Mon, 11 Mar 2002 09:59:09 +0000 (04:59 -0500)
is called once the inode is unlocked.

fs/inode.c

index f4acc1d9ca9fb2b48d7ae17d96f1241b2dadb4f6..c8a205f2df78c5a18f8a6025b58c144e8c2ad960 100644 (file)
@@ -467,8 +467,7 @@ void write_inode_now(struct inode *inode, int sync)
 
        if (sb) {
                spin_lock(&inode_lock);
-               while (inode->i_state & I_DIRTY)
-                       sync_one(inode, sync);
+               sync_one(inode, sync);
                spin_unlock(&inode_lock);
                if (sync)
                        wait_on_inode(inode);