projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d25b9a1
)
[PATCH] Move cond_resched() after iput() in sync_sb_inodes()
author
OGAWA Hirofumi
<hirofumi@mail.parknet.co.jp>
Sat, 25 Mar 2006 11:07:44 +0000
(
03:07
-0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sat, 25 Mar 2006 16:22:56 +0000
(08:22 -0800)
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>
fs/fs-writeback.c
patch
|
blob
|
history
diff --git
a/fs/fs-writeback.c
b/fs/fs-writeback.c
index 785c7213a54f513186aa5e403a1a3066f646eb12..f3fbe2d030f4def8fae388ef49bc617bf251e913 100644
(file)
--- 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;