From patchwork Fri Nov 13 20:53:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 11904557 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 E7A72697 for ; Fri, 13 Nov 2020 20:54:12 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A348622258 for ; Fri, 13 Nov 2020 20:54:12 +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="ms/PIi/Y" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A348622258 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 EA7736B0068; Fri, 13 Nov 2020 15:54:11 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id E591C6B006C; Fri, 13 Nov 2020 15:54:11 -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 D1ED36B006E; Fri, 13 Nov 2020 15:54:11 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0009.hostedemail.com [216.40.44.9]) by kanga.kvack.org (Postfix) with ESMTP id 97DEB6B0068 for ; Fri, 13 Nov 2020 15:54:11 -0500 (EST) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 35E3A181AEF07 for ; Fri, 13 Nov 2020 20:54:11 +0000 (UTC) X-FDA: 77480597502.13.cover43_3d03c3b27312 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin13.hostedemail.com (Postfix) with ESMTP id 1444A18140B67 for ; Fri, 13 Nov 2020 20:54:11 +0000 (UTC) X-Spam-Summary: 1,0,0,ce689f881526de8c,d41d8cd98f00b204,shy828301@gmail.com,,RULES_HIT:41:69:355:379:541:973:988:989:1202:1260:1311:1314:1345:1437:1515:1534:1539:1711:1714:1730:1747:1777:1792:2393:2559:2562:2899:3138:3139:3140:3141:3142:3350:3865:3868:3871:4250:4605:5007:6119:6261:6653:9413:10004:11026:11658:11914:12043:12048:12291:12297:12438:12517:12519:12679:12683:13069:13311:13357:13894:14095:14096:14384:14687:14721:21060:21080:21444:21451:21627:21666:21990:30012:30054,0,RBL:209.85.215.195:@gmail.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100;04yra5mecy3fcdmybbbosj3mhh7sfocudttqotrtm3m5c153gntf87rn5iu6ikz.1gas1wxted8rum7ne3sdta6crmxnih9kunpsktyost591bq69oojaqmhiot5aut.s-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:none,Custom_rules:0:0:0,LFtime:75,LUA_SUMMARY:none X-HE-Tag: cover43_3d03c3b27312 X-Filterd-Recvd-Size: 3651 Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by imf02.hostedemail.com (Postfix) with ESMTP for ; Fri, 13 Nov 2020 20:54:10 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id h16so3991273pgb.7 for ; Fri, 13 Nov 2020 12:54:10 -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:mime-version :content-transfer-encoding; bh=Bk8vHF0tT8ztZ+U57073Ow5h2docyDMHtlyObudynDc=; b=ms/PIi/YnevYmcaWqTNDmJjkEPhUzUbCxQhpNU0UZI6cLSWomkqgY4xGptZN2YQNeb r5BCyKkFILhtli0Jy3XxXaV/vBRgm1IIVtWNWmdmfI0DWJlTZ/1v5MN/vCIF+3zQnKm2 zOylaiLD+l/RVHOXqOpcDVYDHa76sL1mFxkAchXKiI+zygSitgwzpBK/gUKRjJjXyM0G 3/nekSXSHvcOyniVS9yEQhJP0NRmiC4K/ZrpsfMu33imRMVzf69QEFVHxZouv5QSPz/4 SediNe/hxUGddOMxAabMhJixJM+nLyyw6lftcmGGIBZJzXNaxXbXxZ99+29rQVuMw+IM 9pGg== 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:mime-version :content-transfer-encoding; bh=Bk8vHF0tT8ztZ+U57073Ow5h2docyDMHtlyObudynDc=; b=ZqRwpyKg1CwupwT0IxXWnmUK0P4wvlPI49NByC4Rh4N4ItnDskDIVc7p2INZR4FegQ b5uyfzQMXyo264Pz9NlDr0rff4ISoJTLryZ0cjZZ6G1EFZEyb7tR99q6kiazOeHgf4iC 7A4W4iVsCuMtbbOXVWYlXwlIKxe3Wz2klrYkWG+AXeusw13mXhuqO57nZdBuPiY2PsRq 4ho49WYTio1NXP2UEAMJenL3GSG4xn0teKV0ILCWHYliXLT4NX4ffCAEn7AmDeR8kEoH 3ou2G+aWpoTmFb2LkP/6v29FMwYSph1OnoechYaVD5P0dDf54X7FhCfgJEADxCkW+UZA OWIg== X-Gm-Message-State: AOAM530GGAWHYh/OnaIUUXf2QClo6cTU1UejBH8b1y5v0yfuOkgqOQgH S0YaLJFyZHgmaVIHR1lKs5s= X-Google-Smtp-Source: ABdhPJxjDpTvty9BLWzy2k7Q1G1p5iejS5jG9y46a7aWnobReEgunlHIg4HvvL3R476cmTfOuHjriw== X-Received: by 2002:a17:90a:a609:: with SMTP id c9mr4991124pjq.124.1605300849528; Fri, 13 Nov 2020 12:54:09 -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 a18sm3780234pfa.151.2020.11.13.12.54.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 12:54:08 -0800 (PST) From: Yang Shi To: mhocko@suse.com, ziy@nvidia.com, songliubraving@fb.com, mgorman@suse.de, jack@suse.cz, willy@infradead.org, akpm@linux-foundation.org Cc: shy828301@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [v3 PATCH 0/5] mm: misc migrate cleanup and improvement Date: Fri, 13 Nov 2020 12:53:54 -0800 Message-Id: <20201113205359.556831-1-shy828301@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000009, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Some misc migrate code cleanup and improvement. v3: * Incorporated the comments from Willy v2: * Fixed the comments from Zi Yan * Collected Reviewed-by Yang Shi (5): mm: truncate_complete_page is not existed anymore mm: migrate: simplify the logic for handling permanent failure mm: migrate: skip shared exec THP for NUMA balancing mm: migrate: clean up migrate_prep{_local} mm: migrate: return -ENOSYS if THP migration is unsupported include/linux/migrate.h | 4 +-- mm/mempolicy.c | 8 ++--- mm/migrate.c | 158 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------- mm/vmscan.c | 2 +- 4 files changed, 108 insertions(+), 64 deletions(-)