lkml.org 
[lkml]   [2011]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC][PATCH 2/3] pagemap: export KPF_THP
    On Tue, Dec 20, 2011 at 11:35:37AM +0800, Wu Fengguang wrote:
    > On Tue, Dec 20, 2011 at 02:38:38AM +0800, Naoya Horiguchi wrote:
    > > This flag shows that a given pages is a subpage of transparent hugepage.
    > > It does not care about whether it is a head page or a tail page, because
    > > it's clear from pfn of the target page which you should know when you read
    > > /proc/kpageflags.
    >
    > OK, this is aligning with KPF_HUGE. For those who only care about
    > head/tail pages, will the KPF_COMPOUND_HEAD/KPF_COMPOUND_TAIL flags be
    > set automatically for thp? Which may be more convenient to test/filter
    > than the page address.

    Yes, both of KPF_COMPOUND_HEAD/TAIL flags are automatically set for thp.
    So above patch description was wrong and should be fixed.
    (I didn't notice that because page-types hid compound_head/tail flags
    without --raw flag. Sorry for confusion.)

    > > Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
    >
    > Reviewed-by: Wu Fengguang <fengguang.wu@intel.com>

    Thank you.

    Naoya


    \
     
     \ /
      Last update: 2011-12-20 19:13    [W:3.049 / U:0.028 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site