From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by kanga.kvack.org (Postfix) with ESMTP id 3DD55900015 for ; Thu, 19 Mar 2015 13:12:48 -0400 (EDT) Received: by padcy3 with SMTP id cy3so81137376pad.3 for ; Thu, 19 Mar 2015 10:12:48 -0700 (PDT) Received: from mga02.intel.com (mga02.intel.com. [134.134.136.20]) by mx.google.com with ESMTP id o7si4058225pdp.136.2015.03.19.10.12.47 for ; Thu, 19 Mar 2015 10:12:47 -0700 (PDT) From: "Kirill A. Shutemov" Subject: [PATCH 11/16] page-flags: define PG_swapcache behavior on compound pages Date: Thu, 19 Mar 2015 19:08:17 +0200 Message-Id: <1426784902-125149-12-git-send-email-kirill.shutemov@linux.intel.com> In-Reply-To: <1426784902-125149-1-git-send-email-kirill.shutemov@linux.intel.com> References: <1426784902-125149-1-git-send-email-kirill.shutemov@linux.intel.com> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton , Andrea Arcangeli , Hugh Dickins Cc: Dave Hansen , Mel Gorman , Rik van Riel , Vlastimil Babka , Christoph Lameter , Naoya Horiguchi , Steve Capper , "Aneesh Kumar K.V" , Johannes Weiner , Michal Hocko , Jerome Marchand , linux-kernel@vger.kernel.org, linux-mm@kvack.org, "Kirill A. Shutemov" Swap cannot handle compound pages so far. Transparent huge pages are split on the way to swap. Signed-off-by: Kirill A. Shutemov --- include/linux/page-flags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index d1d08508984d..9ea90bb8cb89 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -330,7 +330,7 @@ PAGEFLAG_FALSE(HighMem) #endif #ifdef CONFIG_SWAP -PAGEFLAG(SwapCache, swapcache, ANY) +PAGEFLAG(SwapCache, swapcache, NO_COMPOUND) #else PAGEFLAG_FALSE(SwapCache) #endif -- 2.1.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org