From patchwork Tue Nov 10 18:12:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 11895003 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 F1A271668 for ; Tue, 10 Nov 2020 18:13:04 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A12F920797 for ; Tue, 10 Nov 2020 18:13:04 +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="MZ1ms173" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A12F920797 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 ADA396B0036; Tue, 10 Nov 2020 13:13:03 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A89EB6B005C; Tue, 10 Nov 2020 13:13:03 -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 9795C6B005D; Tue, 10 Nov 2020 13:13:03 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0220.hostedemail.com [216.40.44.220]) by kanga.kvack.org (Postfix) with ESMTP id 6C2DD6B0036 for ; Tue, 10 Nov 2020 13:13:03 -0500 (EST) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 07C5F1EE6 for ; Tue, 10 Nov 2020 18:13:03 +0000 (UTC) X-FDA: 77469305046.01.birds75_6006765272f7 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin01.hostedemail.com (Postfix) with ESMTP id D508D1004933C for ; Tue, 10 Nov 2020 18:13:02 +0000 (UTC) X-Spam-Summary: 1,0,0,42937790582b8cf6,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:14384:14687:14721:21060:21080:21444:21451:21627:21666:21990:30012:30054,0,RBL:209.85.215.175:@gmail.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100;04y8b5nid1rioe81zszn8cac3knjsocbfgp6nhs55rjk771a8ntf87rn5iu666n.buhdndob8uhpjqkae3sdta6crxoiwwawfgribfib6me5nbq69oojaqj4iogkyg6.e-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:68,LUA_SUMMARY:none X-HE-Tag: birds75_6006765272f7 X-Filterd-Recvd-Size: 3580 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) by imf38.hostedemail.com (Postfix) with ESMTP for ; Tue, 10 Nov 2020 18:13:02 +0000 (UTC) Received: by mail-pg1-f175.google.com with SMTP id m13so2760884pgl.7 for ; Tue, 10 Nov 2020 10:13:02 -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=EsrVlmyAtM1K+YkC9o0RIUvZtd2QIppgyNOZFO0Pbxg=; b=MZ1ms1731XAw0nxOXdKHrEXbxCiBjvpX+st8Mz+ugd4EPKziIxosIlwbsMDhryhCvu WO2IHnc8R/iIU90v0upu8+1g/MZOp0ZmeeTegY/dHe2zmDpjbPRlkDQ2ocxL8HflxNi3 r08Mwd2FZgJagd3q1nQhZoGuniSWQHTTNzMKFb5FUe/il4IHEOD3/BI7+fKv/Ffv+JaR wXLKvm7vNmFrg/WRtXeEGJk62AjjKx9z149JQ2SOwTIih8UB4AJhIidkgXD7GmqnzX8L AmpAmK+HEc9JISWjM9gJNXsNwpU2Ps7XuVj1nnPacw1wObdfYSUK4azNRltq8YTTKMif jyag== 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=EsrVlmyAtM1K+YkC9o0RIUvZtd2QIppgyNOZFO0Pbxg=; b=p/NKf5pVB0tbq4wi7k3YB0cQ1iU7XwnVG51dOUbPUFEsnBnokaNAuCttD6KCxcJdfb urtHtkf+p7XQQ4cRWC9WfdZzVSEXWp8qDioU+lqPhogE1WFHMe/uK/rMHLJGzcGkLiIR 9doqWxeeDVCBhs4dmKvEFTEOkfNuJ3I7DyG1gWKLv5zVV4aL3ov2QZYpWBE71PuJRhKX ZfXnWLIn2YWk0EYpPEtU09+BkUdcX90AQrdqaYEPYIh8cwhn3A+cnu9YRt6uON0YvENP ygasbBt4wDi0KgSP9bKiTuN7/KRMe502DtK09P+C0Pry1eXvYuyjxCjxFIwk74kpEAi/ JoOQ== X-Gm-Message-State: AOAM530vw45UEgha8wADapWqrFyvgEeYDx1lMnOdRkCPhu1h8xVrpQAA FNMBOkTRsOwCoCHxyzKrZmk= X-Google-Smtp-Source: ABdhPJyPz4ZLmHXW7yjRFNkJShAhlzhuMtYXBxPadY395bUKIhkO1mzb6AHb4ubfpGCRrUKTpRsHUA== X-Received: by 2002:a17:90a:5e4d:: with SMTP id u13mr338745pji.171.1605031981234; Tue, 10 Nov 2020 10:13:01 -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.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 10:13:00 -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 0/5] mm: misc migrate cleanup and improvement Date: Tue, 10 Nov 2020 10:12:45 -0800 Message-Id: <20201110181250.264394-1-shy828301@gmail.com> X-Mailer: git-send-email 2.26.2 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: Some misc migrate code cleanup and improvement. 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(-)