From: OGAWA Hirofumi Date: Sat, 25 Mar 2006 11:07:44 +0000 (-0800) Subject: [PATCH] Move cond_resched() after iput() in sync_sb_inodes() X-Git-Tag: v2.6.17-rc1~790 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ffc84442572669727dc4fcd976582508eaf23e7;p=linux-2.6 [PATCH] Move cond_resched() after iput() in sync_sb_inodes() In here, I think the following order is more cache-friendly. Signed-off-by: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 785c7213a5..f3fbe2d030 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -381,8 +381,8 @@ sync_sb_inodes(struct super_block *sb, struct writeback_control *wbc) list_move(&inode->i_list, &sb->s_dirty); } spin_unlock(&inode_lock); - cond_resched(); iput(inode); + cond_resched(); spin_lock(&inode_lock); if (wbc->nr_to_write <= 0) break;