提交 687a21ce 编写于 作者: P Pekka J Enberg 提交者: Linus Torvalds

[PATCH] rename wakeup_bdflush to wakeup_pdflush

Signed-off-by: NPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 05133fc4
...@@ -278,7 +278,7 @@ EXPORT_SYMBOL(thaw_bdev); ...@@ -278,7 +278,7 @@ EXPORT_SYMBOL(thaw_bdev);
*/ */
static void do_sync(unsigned long wait) static void do_sync(unsigned long wait)
{ {
wakeup_bdflush(0); wakeup_pdflush(0);
sync_inodes(0); /* All mappings, inodes and their blockdevs */ sync_inodes(0); /* All mappings, inodes and their blockdevs */
DQUOT_SYNC(NULL); DQUOT_SYNC(NULL);
sync_supers(); /* Write the superblocks */ sync_supers(); /* Write the superblocks */
...@@ -497,7 +497,7 @@ static void free_more_memory(void) ...@@ -497,7 +497,7 @@ static void free_more_memory(void)
struct zone **zones; struct zone **zones;
pg_data_t *pgdat; pg_data_t *pgdat;
wakeup_bdflush(1024); wakeup_pdflush(1024);
yield(); yield();
for_each_pgdat(pgdat) { for_each_pgdat(pgdat) {
......
...@@ -85,7 +85,7 @@ static inline void wait_on_inode(struct inode *inode) ...@@ -85,7 +85,7 @@ static inline void wait_on_inode(struct inode *inode)
/* /*
* mm/page-writeback.c * mm/page-writeback.c
*/ */
int wakeup_bdflush(long nr_pages); int wakeup_pdflush(long nr_pages);
void laptop_io_completion(void); void laptop_io_completion(void);
void laptop_sync_completion(void); void laptop_sync_completion(void);
void throttle_vm_writeout(void); void throttle_vm_writeout(void);
......
...@@ -354,7 +354,7 @@ static void background_writeout(unsigned long _min_pages) ...@@ -354,7 +354,7 @@ static void background_writeout(unsigned long _min_pages)
* the whole world. Returns 0 if a pdflush thread was dispatched. Returns * the whole world. Returns 0 if a pdflush thread was dispatched. Returns
* -1 if all pdflush threads were busy. * -1 if all pdflush threads were busy.
*/ */
int wakeup_bdflush(long nr_pages) int wakeup_pdflush(long nr_pages)
{ {
if (nr_pages == 0) { if (nr_pages == 0) {
struct writeback_state wbs; struct writeback_state wbs;
......
...@@ -972,7 +972,7 @@ int try_to_free_pages(struct zone **zones, unsigned int gfp_mask) ...@@ -972,7 +972,7 @@ int try_to_free_pages(struct zone **zones, unsigned int gfp_mask)
* writeout. So in laptop mode, write out the whole world. * writeout. So in laptop mode, write out the whole world.
*/ */
if (total_scanned > sc.swap_cluster_max + sc.swap_cluster_max/2) { if (total_scanned > sc.swap_cluster_max + sc.swap_cluster_max/2) {
wakeup_bdflush(laptop_mode ? 0 : total_scanned); wakeup_pdflush(laptop_mode ? 0 : total_scanned);
sc.may_writepage = 1; sc.may_writepage = 1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册