diff options
author | Andrea Arcangeli <aarcange@redhat.com> | 2011-06-16 12:56:19 -0700 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2012-05-17 11:20:56 -0400 |
commit | bf7356dc949e1f990a65423ce4ce3cce6f56f559 (patch) | |
tree | 8b838ab4477e2815a9ed3e42a9e1550ae5e11905 /arch | |
parent | 0395a92f7c90a13e087a1aefe501e865468a65e5 (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: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions