Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3070796ybt; Mon, 29 Jun 2020 14:31:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlOtU6JpoRXMkpnqgUsFu5p0KNREEOCJ8Q93MM8UZXmuIVvP6bOG9Lbo6qcrTn0q/ESWaA X-Received: by 2002:a17:906:748:: with SMTP id z8mr16084003ejb.257.1593466295278; Mon, 29 Jun 2020 14:31:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593466295; cv=none; d=google.com; s=arc-20160816; b=MvOaEIW8uBP5L2PyBx3qyTmgSDtN+v5LRDDo0SVEyi6MsGALSlXmUISx4pUuJ1gnKo 0IKdKQXhyAIV6adxNgL7MUk/0BrY9Mf78q80LYqy67ZzUgecFGlEKUFkMpn3gXm1vCT4 CVUGledh5Ecl6vPLTr+1KVu3OiX32Tyrons/hHYE4NzymQVHfrFeJMUert3rGiwlhHNC eCBlTUmVUamPiXP2p2lcZtky8Np0jmNCfwxIEgpwrLhgxcVj7h6ipUecd3vuWrRBMqBm aglohYzvGvRKtFAcfg3axI68HQ2BbLz1qI5IOysYRdgW74cYqfR2MIlTgUtqKXGeMegm WhSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=CJioHaCOyug7kb5JkSwcfKblF6oXU8VsfWalX8xPRa4=; b=0q655Ok+5SCzMmWwSZHvZZr2hU1NsZ7HtpGI13mF1z2tjrDVWO/JlSPpD8274rm9lW 0jjISYX0O9gDUb1fABQOYgdYV2JQc5YO6ZWg+quUwCrKU1nGWGTIfvmbNaWgbZWaWivV PN8GtY/lI3P3gkHXvZRXz9DQkOyipHdHa9aVE0fPiYZEh3nqDGmTrlnAahAFFR4IROAq flmKWtuWVx5HTftpUEOINWfhqde3vVhR4XfoFazpIcMUQtn8BRacC64REMls2qwGSWb9 rCWtr2e2FXhcDN3vEQEZz9VzQNHJkvjx/aJc3qkF4e0ze9ZJCrsGQviGpa30kQLE5d59 emFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qw23si452934ejb.231.2020.06.29.14.31.12; Mon, 29 Jun 2020 14:31:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388687AbgF2VaD (ORCPT + 99 others); Mon, 29 Jun 2020 17:30:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:40466 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728891AbgF2SlY (ORCPT ); Mon, 29 Jun 2020 14:41:24 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 01C21AF87; Mon, 29 Jun 2020 10:25:16 +0000 (UTC) Subject: Re: [PATCH for v5.8 2/3] mm/swap: fix for "mm: workingset: age nonresident information alongside anonymous pages" To: js1304@gmail.com, Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Johannes Weiner , Rik van Riel , Minchan Kim , Michal Hocko , kernel-team@lge.com, Joonsoo Kim References: <1592288204-27734-1-git-send-email-iamjoonsoo.kim@lge.com> <1592288204-27734-3-git-send-email-iamjoonsoo.kim@lge.com> From: Vlastimil Babka Message-ID: Date: Mon, 29 Jun 2020 12:25:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <1592288204-27734-3-git-send-email-iamjoonsoo.kim@lge.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/16/20 8:16 AM, js1304@gmail.com wrote: > From: Joonsoo Kim > > Non-file-lru page could also be activated in mark_page_accessed() > and we need to count this activation for nonresident_age. > > Note that it's better for this patch to be squashed into the patch > "mm: workingset: age nonresident information alongside anonymous pages". Agreed. > Signed-off-by: Joonsoo Kim Acked-by: Vlastimil Babka > --- > mm/swap.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/mm/swap.c b/mm/swap.c > index 667133d..c5d5114 100644 > --- a/mm/swap.c > +++ b/mm/swap.c > @@ -443,8 +443,7 @@ void mark_page_accessed(struct page *page) > else > __lru_cache_activate_page(page); > ClearPageReferenced(page); > - if (page_is_file_lru(page)) > - workingset_activation(page); > + workingset_activation(page); > } > if (page_is_idle(page)) > clear_page_idle(page); >