From patchwork Tue Nov 3 13:03:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 11885093 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6D16E697 for ; Thu, 5 Nov 2020 20:53:47 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 19D6920719 for ; Thu, 5 Nov 2020 20:53:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nDFSc5E0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 19D6920719 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2AAEE6B0192; Thu, 5 Nov 2020 15:53:46 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 234B36B0193; Thu, 5 Nov 2020 15:53:46 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0ACAE6B0194; Thu, 5 Nov 2020 15:53:46 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0108.hostedemail.com [216.40.44.108]) by kanga.kvack.org (Postfix) with ESMTP id C63ED6B0192 for ; Thu, 5 Nov 2020 15:53:45 -0500 (EST) Received: from smtpin30.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 639E1180AD806 for ; Thu, 5 Nov 2020 20:53:45 +0000 (UTC) X-FDA: 77451566010.30.songs53_3e1627b272cc Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin30.hostedemail.com (Postfix) with ESMTP id 3EBF3180B3C8B for ; Thu, 5 Nov 2020 20:53:45 +0000 (UTC) X-Spam-Summary: 1,0,0,1a915c0e465e604f,d41d8cd98f00b204,shy828301@gmail.com,,RULES_HIT:41:355:379:541:800:960:966:973:988:989:1202:1260:1311:1314:1345:1359:1437:1515:1534:1541:1711:1730:1747:1777:1792:2196:2198:2199:2200:2393:2559:2562:2693:3138:3139:3140:3141:3142:3353:3865:3867:3868:3870:3871:3872:3874:4250:4321:4385:5007:6119:6261:6653:7514:7903:7974:9413:10004:11026:11658:11914:12043:12048:12114:12296:12297:12438:12517:12519:12555:12895:12986:13069:13161:13229:13311:13357:13894:14096:14181:14384:14394:14687:14721:21060:21080:21325:21444:21451:21627:21666:21740:30003:30054,0,RBL:209.85.210.196:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100;04yf11dgb1o6nhz7ou4kcopxuns7hoc58agbbtkrwxaicw9cu57f74r96dxah1h.4fiygb8wy8seg1oih7yyznc9qzypbofk7qycb5gxdb5geakkyiop5jhmx6fj7jo.r-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:68,LUA_SUMMARY:none X-HE-Tag: songs53_3e1627b272cc X-Filterd-Recvd-Size: 4791 Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by imf35.hostedemail.com (Postfix) with ESMTP for ; Thu, 5 Nov 2020 20:53:44 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id 13so2288833pfy.4 for ; Thu, 05 Nov 2020 12:53:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QB12Dnq0Zqx+BHwKjUtFB3CjUxaGHX59xb2vUzz59zw=; b=nDFSc5E0ytVh5sWwE+6Z7ZN80uS6oRNCypDUlbFYAm77DAooRLVaQOVIh35SBU8tc/ DnRlZPcsuryFvi+aWJkcU4sMZO9UnOkDPh0Ju5YdzaxZOBOQs5IyT+m951zdA3Z6/8W7 rSEB5hRQGxQF8aRwKlBnixUhE5e2nKAdnGMlS2EZwOnxARgpVsA/cWXDKsz/l+QdTU1G VUNLndDxC9jB40ulu4gOTrRDJ33XYWuCCxCXl9haCnm45m5Tsx0lFaRu8zi9e4pOiGYY J2GesAbE5cLRq1osjCMJq/9aayz5A7lIMMXPoO9z6/ZuZtIeQeKKJuRSecjeR52570Ts o0bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QB12Dnq0Zqx+BHwKjUtFB3CjUxaGHX59xb2vUzz59zw=; b=KytE65dVLTxCHCiaMUMRZ1xDeCJcUDN9wdYd4viG+UhlvE5NtdSz7ny8QmyuHE1qF+ AsQtIBX1axljMgMgbtbWJDazQsXAy8NZ2/tZS37aUfjmYAUXBv4S9L7+1rKRkGzCA1iz GBj00XDEoL8GdvkPLVxPqvYKcI3OBCYuKejB3gjjLNv8+BEX1OZYigWxQLSGJhmRWQwz dEQy39pf7a59LxlsZar+I7IawpjUmTTqM7Ok9nofiBAlLxyVU3no0da8/NQaC3nt20qm W9U/um/iutuSbKcUpuyGnURJSKtqkI2vO0QCPO2Gqxp5mYhqsMzUSvMCpA2TRzpgj39o 6h5w== X-Gm-Message-State: AOAM531WrmdO6kNaN/q2dAzIXiQzjRAxxfgKXHI5JJx9/d4U52RUFAKT kY1c30MqPtN2Eb+H92rPjsU= X-Google-Smtp-Source: ABdhPJz40G2S/CGCQtwBbJtpMNoorkNydyinaIkS/Ezn6FTP4Z1u1hRFVNX+FpEDhrGeYK6RFe72sQ== X-Received: by 2002:a17:90a:a394:: with SMTP id x20mr4135807pjp.213.1604609623788; Thu, 05 Nov 2020 12:53:43 -0800 (PST) Received: from localhost.localdomain (c-107-3-138-210.hsd1.ca.comcast.net. [107.3.138.210]) by smtp.gmail.com with ESMTPSA id u22sm3265528pgf.24.2020.11.05.12.53.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 12:53:42 -0800 (PST) From: Yang Shi To: mhocko@suse.com, ziy@nvidia.com, songliubraving@fb.com, mgorman@suse.de, jack@suse.cz, akpm@linux-foundation.org Cc: shy828301@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] mm: truncate_complete_page is not existed anymore Date: Tue, 3 Nov 2020 05:03:30 -0800 Message-Id: <20201103130334.13468-2-shy828301@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201103130334.13468-1-shy828301@gmail.com> References: <20201103130334.13468-1-shy828301@gmail.com> MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The commit 9f4e41f4717832e34cca153ced62b4a1d7e26c0e ("mm: refactor truncate_complete_page()") refactored truncate_complete_page(), and it is not existed anymore, correct the comment in vmscan and migrate to avoid confusion. Signed-off-by: Yang Shi Reviewed-by: Jan Kara --- mm/migrate.c | 2 +- mm/vmscan.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/migrate.c b/mm/migrate.c index 5ca5842df5db..8a2e7e19e27b 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -1106,7 +1106,7 @@ static int __unmap_and_move(struct page *page, struct page *newpage, * and treated as swapcache but it has no rmap yet. * Calling try_to_unmap() against a page->mapping==NULL page will * trigger a BUG. So handle it here. - * 2. An orphaned page (see truncate_complete_page) might have + * 2. An orphaned page (see truncate_cleanup_page) might have * fs-private metadata. The page can be picked up due to memory * offlining. Everywhere else except page reclaim, the page is * invisible to the vm, so the page can not be migrated. So try to diff --git a/mm/vmscan.c b/mm/vmscan.c index 1b8f0e059767..165cca87edc8 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1393,7 +1393,7 @@ static unsigned int shrink_page_list(struct list_head *page_list, * * Rarely, pages can have buffers and no ->mapping. These are * the pages which were not successfully invalidated in - * truncate_complete_page(). We try to drop those buffers here + * truncate_cleanup_page(). We try to drop those buffers here * and if that worked, and the page is no longer mapped into * process address space (page_count == 1) it can be freed. * Otherwise, leave the page on the LRU so it is swappable.