From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752047AbeB0X3u (ORCPT ); Tue, 27 Feb 2018 18:29:50 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:44837 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751554AbeB0X3t (ORCPT ); Tue, 27 Feb 2018 18:29:49 -0500 X-Google-Smtp-Source: AG47ELs+iM9iZC5aFRDAYZLNK+na/wivxh7+0AJRojyM7tEnlD5dXm6/xuA8o1rnQfoeenFyaCZR1Q== Date: Wed, 28 Feb 2018 08:29:43 +0900 From: Minchan Kim To: Andrew Morton Cc: linux-mm , lkml , Hugh Dickins , "Huang, Ying" Subject: Re: [PATCH] mm:swap: do not check readahead flag with THP anon Message-ID: <20180227232943.GC168047@rodete-desktop-imager.corp.google.com> References: <20180227232611.169883-1-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180227232611.169883-1-minchan@kernel.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 08:26:11AM +0900, Minchan Kim wrote: > Huang reported PG_readahead flag marked PF_NO_COMPOUND so that > we cannot use the flag for THP page. So, we need to check first > whether page is THP or not before using TestClearPageReadahead > in lookup_swap_cache. > > This patch fixes it. > > Furthermore, swap_[cluster|vma]_readahead cannot mark PG_readahead > for newly allocated page because the allocated page is always a > normal page, not THP at this moment. So let's clean it up, too. > > Cc: Hugh Dickins > Cc: "Huang, Ying" > Signed-off-by: Minchan Kim Link:http://lkml.kernel.org/r/874lm83zho.fsf@yhuang-dev.intel.com From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f197.google.com (mail-pf0-f197.google.com [209.85.192.197]) by kanga.kvack.org (Postfix) with ESMTP id D91726B0003 for ; Tue, 27 Feb 2018 18:29:49 -0500 (EST) Received: by mail-pf0-f197.google.com with SMTP id e10so296091pff.3 for ; Tue, 27 Feb 2018 15:29:49 -0800 (PST) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id l1-v6sor159426pld.59.2018.02.27.15.29.48 for (Google Transport Security); Tue, 27 Feb 2018 15:29:48 -0800 (PST) Date: Wed, 28 Feb 2018 08:29:43 +0900 From: Minchan Kim Subject: Re: [PATCH] mm:swap: do not check readahead flag with THP anon Message-ID: <20180227232943.GC168047@rodete-desktop-imager.corp.google.com> References: <20180227232611.169883-1-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180227232611.169883-1-minchan@kernel.org> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: linux-mm , lkml , Hugh Dickins , "Huang, Ying" On Wed, Feb 28, 2018 at 08:26:11AM +0900, Minchan Kim wrote: > Huang reported PG_readahead flag marked PF_NO_COMPOUND so that > we cannot use the flag for THP page. So, we need to check first > whether page is THP or not before using TestClearPageReadahead > in lookup_swap_cache. > > This patch fixes it. > > Furthermore, swap_[cluster|vma]_readahead cannot mark PG_readahead > for newly allocated page because the allocated page is always a > normal page, not THP at this moment. So let's clean it up, too. > > Cc: Hugh Dickins > Cc: "Huang, Ying" > Signed-off-by: Minchan Kim Link:http://lkml.kernel.org/r/874lm83zho.fsf@yhuang-dev.intel.com -- 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