From: Nicholas Piggin <npiggin@gmail.com>
To: Hugh Dickins <hughd@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
Wu Fengguang <fengguang.wu@intel.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH] mm: fix KPF_SWAPCACHE
Date: Thu, 9 Feb 2017 14:20:26 +1000 [thread overview]
Message-ID: <20170209142026.6861ffb0@roar.ozlabs.ibm.com> (raw)
In-Reply-To: <alpine.LSU.2.11.1702071105360.11828@eggly.anvils>
On Tue, 7 Feb 2017 11:11:16 -0800 (PST)
Hugh Dickins <hughd@google.com> wrote:
> 4.10-rc1 commit 6326fec1122c ("mm: Use owner_priv bit for PageSwapCache,
> valid when PageSwapBacked") aliased PG_swapcache to PG_owner_priv_1:
> so /proc/kpageflags' KPF_SWAPCACHE should now be synthesized, instead
> of being shown on unrelated pages which have PG_owner_priv_1 set.
>
> Signed-off-by: Hugh Dickins <hughd@google.com>
Thanks Hugh, this seems fine to me. We want this for 4.10, no?
Fixes: 6326fec1122c ("mm: Use owner_priv bit for PageSwapCache, valid when PageSwapBacked")
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
> ---
>
> fs/proc/page.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> --- 4.10-rc7/fs/proc/page.c 2016-12-25 18:40:50.618454962 -0800
> +++ linux/fs/proc/page.c 2017-02-07 10:28:51.019640392 -0800
> @@ -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);
next prev parent reply other threads:[~2017-02-09 4:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-07 19:11 [PATCH] mm: fix KPF_SWAPCACHE Hugh Dickins
2017-02-09 4:20 ` Nicholas Piggin [this message]
2017-02-09 4:50 ` Hugh Dickins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170209142026.6861ffb0@roar.ozlabs.ibm.com \
--to=npiggin@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=fengguang.wu@intel.com \
--cc=hughd@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).