Commit 4ffc84442572669727dc4fcd976582508eaf23e7

Authored by OGAWA Hirofumi
Committed by Linus Torvalds
1 parent d25b9a1ff0

[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 <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -381,8 +381,8 @@
381 381 list_move(&inode->i_list, &sb->s_dirty);
382 382 }
383 383 spin_unlock(&inode_lock);
384   - cond_resched();
385 384 iput(inode);
  385 + cond_resched();
386 386 spin_lock(&inode_lock);
387 387 if (wbc->nr_to_write <= 0)
388 388 break;