diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-25 06:11:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-25 06:11:02 -0400 |
commit | 59e52534172d845ebffb0d7e85fc56fb7b857051 (patch) | |
tree | 49552e03f1bdb413cd8b5f7542e91770688d7047 /mm | |
parent | 73692d9bb58ecc2fa73f4b2bfcf6eadaa6d49a26 (diff) | |
parent | 0d89e54c8249645404283436d952afc261a04e1e (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (59 commits)
MAINTAINERS: linux-m32r is moderated for non-subscribers
linux@lists.openrisc.net is moderated for non-subscribers
Drop default from "DM365 codec select" choice
parisc: Kconfig: cleanup Kernel page size default
Kconfig: remove redundant CONFIG_ prefix on two symbols
cris: remove arch/cris/arch-v32/lib/nand_init.S
microblaze: add missing CONFIG_ prefixes
h8300: drop puzzling Kconfig dependencies
MAINTAINERS: microblaze-uclinux@itee.uq.edu.au is moderated for non-subscribers
tty: drop superfluous dependency in Kconfig
ARM: mxc: fix Kconfig typo 'i.MX51'
Fix file references in Kconfig files
aic7xxx: fix Kconfig references to READMEs
Fix file references in drivers/ide/
thinkpad_acpi: Fix printk typo 'bluestooth'
bcmring: drop commented out line in Kconfig
btmrvl_sdio: fix typo 'btmrvl_sdio_sd6888'
doc: raw1394: Trivial typo fix
CIFS: Don't free volume_info->UNC until we are entirely done with it.
treewide: Correct spelling of successfully in comments
...
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_cgroup.c | 3 | ||||
-rw-r--r-- | mm/vmscan.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/mm/page_cgroup.c b/mm/page_cgroup.c index 39d216d535ea..6bdc67dbbc28 100644 --- a/mm/page_cgroup.c +++ b/mm/page_cgroup.c | |||
@@ -513,11 +513,10 @@ int swap_cgroup_swapon(int type, unsigned long max_pages) | |||
513 | length = DIV_ROUND_UP(max_pages, SC_PER_PAGE); | 513 | length = DIV_ROUND_UP(max_pages, SC_PER_PAGE); |
514 | array_size = length * sizeof(void *); | 514 | array_size = length * sizeof(void *); |
515 | 515 | ||
516 | array = vmalloc(array_size); | 516 | array = vzalloc(array_size); |
517 | if (!array) | 517 | if (!array) |
518 | goto nomem; | 518 | goto nomem; |
519 | 519 | ||
520 | memset(array, 0, array_size); | ||
521 | ctrl = &swap_cgroup_ctrl[type]; | 520 | ctrl = &swap_cgroup_ctrl[type]; |
522 | mutex_lock(&swap_cgroup_mutex); | 521 | mutex_lock(&swap_cgroup_mutex); |
523 | ctrl->length = length; | 522 | ctrl->length = length; |
diff --git a/mm/vmscan.c b/mm/vmscan.c index b55699cd9067..9fdfce7ba403 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c | |||
@@ -1416,7 +1416,7 @@ static inline bool should_reclaim_stall(unsigned long nr_taken, | |||
1416 | if (sc->reclaim_mode & RECLAIM_MODE_SINGLE) | 1416 | if (sc->reclaim_mode & RECLAIM_MODE_SINGLE) |
1417 | return false; | 1417 | return false; |
1418 | 1418 | ||
1419 | /* If we have relaimed everything on the isolated list, no stall */ | 1419 | /* If we have reclaimed everything on the isolated list, no stall */ |
1420 | if (nr_freed == nr_taken) | 1420 | if (nr_freed == nr_taken) |
1421 | return false; | 1421 | return false; |
1422 | 1422 | ||