From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751619AbdB0Gv6 (ORCPT ); Mon, 27 Feb 2017 01:51:58 -0500 Received: from out4439.biz.mail.alibaba.com ([47.88.44.39]:20606 "EHLO out4439.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751396AbdB0Gv5 (ORCPT ); Mon, 27 Feb 2017 01:51:57 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03290;MF=hillf.zj@alibaba-inc.com;NM=1;PH=DS;RN=11;SC=85;SR=0;TI=SMTPD_---.7iDdCRE_1488178122; Reply-To: "Hillf Danton" From: "Hillf Danton" To: "'Shaohua Li'" , , Cc: , , , , , , , References: <3945232c0df3dd6c4ef001976f35a95f18dcb407.1487965799.git.shli@fb.com> In-Reply-To: <3945232c0df3dd6c4ef001976f35a95f18dcb407.1487965799.git.shli@fb.com> Subject: Re: [PATCH V5 2/6] mm: don't assume anonymous pages have SwapBacked flag Date: Mon, 27 Feb 2017 14:48:41 +0800 Message-ID: <06b701d290c5$8909bec0$9b1d3c40$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQIuD9vBFeLkbhxOzv8ei/Ca5089rgHm1xXPoLYz1zA= Content-Language: zh-cn Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On February 25, 2017 5:32 AM Shaohua Li wrote: > > There are a few places the code assumes anonymous pages should have > SwapBacked flag set. MADV_FREE pages are anonymous pages but we are > going to add them to LRU_INACTIVE_FILE list and clear SwapBacked flag > for them. The assumption doesn't hold any more, so fix them. > > Cc: Michal Hocko > Cc: Minchan Kim > Cc: Hugh Dickins > Cc: Rik van Riel > Cc: Mel Gorman > Cc: Andrew Morton > Acked-by: Johannes Weiner > Signed-off-by: Shaohua Li > --- Acked-by: Hillf Danton