]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix KPF_SWAPCACHE in /proc/kpageflags
authorHugh Dickins <hughd@google.com>
Tue, 7 Feb 2017 19:11:16 +0000 (11:11 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Feb 2017 20:08:32 +0000 (12:08 -0800)
commita34fb69348a06408b45ef667b5507b0c221c94f9
tree91243683ee007ed611fa01a3cbb89fc814fcb3db
parent1c9f0aec96021090e06bd655e5a99617ebc42e28
mm: fix KPF_SWAPCACHE in /proc/kpageflags

Commit 0ab302e2e9b4 ("mm: Use owner_priv bit for PageSwapCache, valid
when PageSwapBacked") aliased PG_swapcache to PG_owner_priv_1 (and
depending on PageSwapBacked being true).

As a result, the KPF_SWAPCACHE bit in '/proc/kpageflags' should now be
synthesized, instead of being shown on unrelated pages which just happen
to have PG_owner_priv_1 set.

Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/page.c