mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
mm: fix KPF_SWAPCACHE in /proc/kpageflags
Commit 6326fec112 ("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 <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Nicholas Piggin <[email protected]>
Cc: Wu Fengguang <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a524c218bc
commit
b6789123bc
1 changed files with 2 additions and 1 deletions
|
|
@ -173,7 +173,8 @@ u64 stable_page_flags(struct page *page)
|
|||
u |= kpf_copy_bit(k, KPF_ACTIVE, PG_active);
|
||||
u |= kpf_copy_bit(k, KPF_RECLAIM, PG_reclaim);
|
||||
|
||||
u |= kpf_copy_bit(k, KPF_SWAPCACHE, PG_swapcache);
|
||||
if (PageSwapCache(page))
|
||||
u |= 1 << KPF_SWAPCACHE;
|
||||
u |= kpf_copy_bit(k, KPF_SWAPBACKED, PG_swapbacked);
|
||||
|
||||
u |= kpf_copy_bit(k, KPF_UNEVICTABLE, PG_unevictable);
|
||||
|
|
|
|||
Loading…
Reference in a new issue