diff options
author | Chandra Seetharaman <sekharan@us.ibm.com> | 2006-09-29 05:01:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-29 12:18:22 -0400 |
commit | 2d1d43f6a43b703587e759145f69467e7c6553a7 (patch) | |
tree | 8ceb1c78a54c6f44f177779b2b7bdbbc9e03048a /include/linux/writeback.h | |
parent | 40c99aae23529f3d069ae08836ae46fadb3fd2bd (diff) |
[PATCH] call mm/page-writeback.c:set_ratelimit() when new pages are hot-added
ratelimit_pages in page-writeback.c is recalculated (in set_ratelimit())
every time a CPU is hot-added/removed. But this value is not recalculated
when new pages are hot-added.
This patch fixes that problem by calling set_ratelimit() when new pages
are hot-added.
[akpm@osdl.org: cleanups]
Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/writeback.h')
-rw-r--r-- | include/linux/writeback.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/writeback.h b/include/linux/writeback.h index 56a23a0e7f2..9d4074ecd0c 100644 --- a/include/linux/writeback.h +++ b/include/linux/writeback.h | |||
@@ -117,6 +117,7 @@ int sync_page_range(struct inode *inode, struct address_space *mapping, | |||
117 | int sync_page_range_nolock(struct inode *inode, struct address_space *mapping, | 117 | int sync_page_range_nolock(struct inode *inode, struct address_space *mapping, |
118 | loff_t pos, loff_t count); | 118 | loff_t pos, loff_t count); |
119 | void set_page_dirty_balance(struct page *page); | 119 | void set_page_dirty_balance(struct page *page); |
120 | void writeback_set_ratelimit(void); | ||
120 | 121 | ||
121 | /* pdflush.c */ | 122 | /* pdflush.c */ |
122 | extern int nr_pdflush_threads; /* Global so it can be exported to sysctl | 123 | extern int nr_pdflush_threads; /* Global so it can be exported to sysctl |