From: Kirill A. Shutemov Date: Tue, 7 Apr 2015 23:44:25 +0000 (+1000) Subject: page-flags: define PG_swapbacked behavior on compound pages X-Git-Tag: KARO-TXA5-2015-06-26~18^2~321 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f4227914b97bedf3b7eb9f869c9573f9915c905e;p=karo-tx-linux.git page-flags: define PG_swapbacked behavior on compound pages PG_swapbacked is used for transparent huge pages. For head pages only. Let's use NO_TAIL policy. Signed-off-by: Kirill A. Shutemov Cc: Andrea Arcangeli Cc: Hugh Dickins Cc: Dave Hansen Cc: Mel Gorman Cc: Rik van Riel Cc: Vlastimil Babka Cc: Christoph Lameter Cc: Naoya Horiguchi Cc: Steve Capper Cc: "Aneesh Kumar K.V" Cc: Johannes Weiner Cc: Michal Hocko Cc: Jerome Marchand Signed-off-by: Andrew Morton --- diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index be691551896b..d1d08508984d 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -290,9 +290,9 @@ PAGEFLAG(Foreign, foreign, NO_COMPOUND) PAGEFLAG(Reserved, reserved, NO_COMPOUND) __CLEARPAGEFLAG(Reserved, reserved, NO_COMPOUND) -PAGEFLAG(SwapBacked, swapbacked, ANY) - __CLEARPAGEFLAG(SwapBacked, swapbacked, ANY) - __SETPAGEFLAG(SwapBacked, swapbacked, ANY) +PAGEFLAG(SwapBacked, swapbacked, NO_TAIL) + __CLEARPAGEFLAG(SwapBacked, swapbacked, NO_TAIL) + __SETPAGEFLAG(SwapBacked, swapbacked, NO_TAIL) /* * Private page markings that may be used by the filesystem that owns the page