mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-19 16:14:13 +08:00
[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>
This commit is contained in:
parent
d25b9a1ff0
commit
4ffc844425
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user