diff options
Diffstat (limited to 'mm')
| -rw-r--r-- | mm/page-writeback.c | 2 | ||||
| -rw-r--r-- | mm/slab.c | 3 | ||||
| -rw-r--r-- | mm/vmscan.c | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 613b99a55917..a6329fa8f862 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c | |||
| @@ -354,7 +354,7 @@ static void background_writeout(unsigned long _min_pages) | |||
| 354 | * the whole world. Returns 0 if a pdflush thread was dispatched. Returns | 354 | * the whole world. Returns 0 if a pdflush thread was dispatched. Returns |
| 355 | * -1 if all pdflush threads were busy. | 355 | * -1 if all pdflush threads were busy. |
| 356 | */ | 356 | */ |
| 357 | int wakeup_bdflush(long nr_pages) | 357 | int wakeup_pdflush(long nr_pages) |
| 358 | { | 358 | { |
| 359 | if (nr_pages == 0) { | 359 | if (nr_pages == 0) { |
| 360 | struct writeback_state wbs; | 360 | struct writeback_state wbs; |
| @@ -2372,6 +2372,9 @@ void *kmem_cache_alloc_node(kmem_cache_t *cachep, int flags, int nodeid) | |||
| 2372 | struct slab *slabp; | 2372 | struct slab *slabp; |
| 2373 | kmem_bufctl_t next; | 2373 | kmem_bufctl_t next; |
| 2374 | 2374 | ||
| 2375 | if (nodeid == -1) | ||
| 2376 | return kmem_cache_alloc(cachep, flags); | ||
| 2377 | |||
| 2375 | for (loop = 0;;loop++) { | 2378 | for (loop = 0;;loop++) { |
| 2376 | struct list_head *q; | 2379 | struct list_head *q; |
| 2377 | 2380 | ||
diff --git a/mm/vmscan.c b/mm/vmscan.c index 1fa312a8db77..cfffe5098d53 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
| @@ -972,7 +972,7 @@ int try_to_free_pages(struct zone **zones, unsigned int gfp_mask) | |||
| 972 | * writeout. So in laptop mode, write out the whole world. | 972 | * writeout. So in laptop mode, write out the whole world. |
| 973 | */ | 973 | */ |
| 974 | if (total_scanned > sc.swap_cluster_max + sc.swap_cluster_max/2) { | 974 | if (total_scanned > sc.swap_cluster_max + sc.swap_cluster_max/2) { |
| 975 | wakeup_bdflush(laptop_mode ? 0 : total_scanned); | 975 | wakeup_pdflush(laptop_mode ? 0 : total_scanned); |
| 976 | sc.may_writepage = 1; | 976 | sc.may_writepage = 1; |
| 977 | } | 977 | } |
| 978 | 978 | ||
