From patchwork Tue Nov 10 18:12:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 11895005 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 F24E516C1 for ; Tue, 10 Nov 2020 18:13:06 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id AFF3920674 for ; Tue, 10 Nov 2020 18:13:06 +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="IW9ttFO9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AFF3920674 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 7850F6B005C; Tue, 10 Nov 2020 13:13:05 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 70ABB6B0068; Tue, 10 Nov 2020 13:13:05 -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 535696B006C; Tue, 10 Nov 2020 13:13:05 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0115.hostedemail.com [216.40.44.115]) by kanga.kvack.org (Postfix) with ESMTP id 235626B005C for ; Tue, 10 Nov 2020 13:13:05 -0500 (EST) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id AE9DE181AEF09 for ; Tue, 10 Nov 2020 18:13:04 +0000 (UTC) X-FDA: 77469305088.14.head41_4004bf5272f7 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin14.hostedemail.com (Postfix) with ESMTP id 8009918229835 for ; Tue, 10 Nov 2020 18:13:04 +0000 (UTC) X-Spam-Summary: 1,0,0,bbebf55aec3d1c53,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:2553: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:14687:14721:21060:21080:21325:21444:21451:21627:21666:21740:30003:30054:30090,0,RBL:209.85.215.170:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.18.0.100;04yftfph88gkxqxtj9f16k1wb8oqxoc58agbbtkrwxaicw9cu5xeg7mfg6foh1h.4fiygb8wy8seg1oih7yyznc9qzypbofk7qycb5gxdb5gjbz8mobqdchmx6fj7jo.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:72,LUA_SUMMARY:none X-HE-Tag: head41_4004bf5272f7 X-Filterd-Recvd-Size: 4832 Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by imf30.hostedemail.com (Postfix) with ESMTP for ; Tue, 10 Nov 2020 18:13:04 +0000 (UTC) Received: by mail-pg1-f170.google.com with SMTP id m13so2761009pgl.7 for ; Tue, 10 Nov 2020 10:13:03 -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=L/nTuHNenKI3mByfAmKMfGl5XsKGSrafuSBjeTgSoyg=; b=IW9ttFO9e6hx5dU8vtwmKHMgFGrf2wc3Frkmon8dAAoTdHNJrxrbbKScyAWE2e0mJ1 EU8pheNXLzIIXe/ThlR0xFVbs1CRK6da4/qT1Dp0s8rh8wQxmpVlT9PArNT4BWjgIC6x NIeTwBU14tyFWpC/jpaNg9IVixusJptWjug2HO+amO8SVLsdNEvBMJBPKdChz4Av9R58 9Hh/VZi8t8dhuBOoqLw7Va3nnLdWO0Edh6Z/NP1bXUit5fXAnM+WjrXd0ndYaIsm+l32 QsyOufxigN1PzwbTcA7+7aI6RtSh6ZtemNcE1ZYen8cJ9R/rEkb2ELWHt+YNq+zvwMCA pPaQ== 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=L/nTuHNenKI3mByfAmKMfGl5XsKGSrafuSBjeTgSoyg=; b=p3clPMiB/kYBIvHJHK1MS3uQqDkro/gpvXUgtct6UgJtvOaXBx7Is5nUP8geBNFs7v JX6onBAjf5JQhIV6A9wZ8uAeQSsLTaL/Lh9Gt+zwm5KQte3oR8b+Jkyq01xaeJGlMq+T OfGGBhuagI6BcHFMv9ubZmVGDijNp+kFkLjlDHamr81F3D3KUMzj7MEd3n+S3FUn0YUz g09aB0srfFvDcIOq4GZBBraaPP4ILLfnwehKBsfZcldHs2JnbvOvivduaub1e7kaf1+y nu6BXWxnrrio0h3cqMYN41TxolqDROj4UjHPxh6INfZIK08naZFeOqS138ivlxtX3I95 FA3g== X-Gm-Message-State: AOAM531XyXqLNYYLTdY/xIZ1r7dBP0xommcbNMlZMyDfs0ie2I3mtWqw g2jeprD7i2QVG++4odTktYY= X-Google-Smtp-Source: ABdhPJzDLli+GB2R9J7uCGeYP1eOQbrUR08X6qU11SHG9RToER/J/I4Lnn3AhnuoDAntaaaywb0yOg== X-Received: by 2002:a17:90a:67c5:: with SMTP id g5mr368182pjm.13.1605031983399; Tue, 10 Nov 2020 10:13:03 -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 k5sm4157369pjj.37.2020.11.10.10.13.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 10:13:02 -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: [v2 PATCH 1/5] mm: truncate_complete_page is not existed anymore Date: Tue, 10 Nov 2020 10:12:46 -0800 Message-Id: <20201110181250.264394-2-shy828301@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201110181250.264394-1-shy828301@gmail.com> References: <20201110181250.264394-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. Reviewed-by: Jan Kara Signed-off-by: Yang Shi --- 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.