summaryrefslogtreecommitdiff
path: root/mm/mmu_context.c
diff options
context:
space:
mode:
authorAndrea Arcangeli <aarcange@redhat.com>2011-06-16 12:56:19 -0700
committerAndi Kleen <ak@linux.intel.com>2011-08-01 13:54:57 -0700
commita67f6f3794586c33e430d8a8e61d0548d33a3abe (patch)
treebef099454a40fd1ce80a34476994b5eaae1f0c2c /mm/mmu_context.c
parenta5c70c5bbd56baea711ddd0dfe3e617d0ba20e6f (diff)
migrate: don't account swapcache as shmem
commit 99a15e21d96f6857dafab1e5167e5e8183215c9c upstream. swapcache will reach the below code path in migrate_page_move_mapping, and swapcache is accounted as NR_FILE_PAGES but it's not accounted as NR_SHMEM. Hugh pointed out we must use PageSwapCache instead of comparing mapping to &swapper_space, to avoid build failure with CONFIG_SWAP=n. Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Acked-by: Hugh Dickins <hughd@google.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'mm/mmu_context.c')
0 files changed, 0 insertions, 0 deletions