From patchwork Tue Nov 3 13:03:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 11885091 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 0933214B4 for ; Thu, 5 Nov 2020 20:53:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9C45820719 for ; Thu, 5 Nov 2020 20:53:44 +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="KDgDPHLC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9C45820719 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 B84376B018F; Thu, 5 Nov 2020 15:53:43 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id B0DE06B0190; Thu, 5 Nov 2020 15:53:43 -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 9FB2D6B0191; Thu, 5 Nov 2020 15:53:43 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0073.hostedemail.com [216.40.44.73]) by kanga.kvack.org (Postfix) with ESMTP id 6B8646B018F for ; Thu, 5 Nov 2020 15:53:43 -0500 (EST) Received: from smtpin22.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id F26EF1EE6 for ; Thu, 5 Nov 2020 20:53:42 +0000 (UTC) X-FDA: 77451565884.22.roof24_4e095f0272cc Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin22.hostedemail.com (Postfix) with ESMTP id C38A218038E60 for ; Thu, 5 Nov 2020 20:53:42 +0000 (UTC) X-Spam-Summary: 1,0,0,a1a1261752f538d3,d41d8cd98f00b204,shy828301@gmail.com,,RULES_HIT:41:69:355:379:541:973:988:989:1202:1260:1311:1314:1345:1437:1515:1534:1539:1568:1711:1714:1730:1747:1777:1792:2393:2559:2562:2899:3138:3139:3140:3141:3142: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:14394:14687:14721:21060:21080:21444:21451:21627:21666:21990:30012:30054,0,RBL:209.85.215.173:@gmail.com:.lbl8.mailshell.net-66.100.201.100 62.18.0.100;04y8r4i537opeztw7hxt7ny93bde6ocudttqotrtejx9omm5ccmuc1aub4fq66n.buhdnd9ted8rum7ne3sdta6crjye31shh41i3cns315a8a9p6g3ukjkbdrzaagi.g-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:109,LUA_SUMMARY:none X-HE-Tag: roof24_4e095f0272cc X-Filterd-Recvd-Size: 3507 Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by imf13.hostedemail.com (Postfix) with ESMTP for ; Thu, 5 Nov 2020 20:53:42 +0000 (UTC) Received: by mail-pg1-f173.google.com with SMTP id i26so2184721pgl.5 for ; Thu, 05 Nov 2020 12:53:42 -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=glxnw0G7mxkHwrXWKFo1FuZeLsueNuAwrkAI5cvobhs=; b=KDgDPHLCwQNjq5ZevQXlPQyPpemkdsQuLbYTPNaG/g2JQkTMTSKuf8dBXtgLXmtg6E pTn+g84r/p2ezItTwPsXkOC7cnygQfyQHNhWcFkWCr3Gdu61XTW46uFVpmesvrXQb2Lc VgWwP1v7Irp/RBZlm5IS7yP066DSUkT+RazNa8AL4vDf/ndVHqLK7m8fMpx4VO8QxDtc Wb4vl4CPL5WAtqJAf04E1nX7MeVMIzi/WDQ0IcTo81AJgmlhSbdisZKTwT0vT4V1hHkF CAsK1PiOGuK3wgI0678kaE2DLjQecdLPB87g9LxzJc+vydmqW70Br5Kmij0jJFBS7Ikv CAUA== 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=glxnw0G7mxkHwrXWKFo1FuZeLsueNuAwrkAI5cvobhs=; b=Nj2ZtKPdcXIwWigLLVjRIl65uuHmCQq5aFfpp5lUSbrHZAtZF/YZI7O+ljtX3uPAhL y1mbhVEbx2VSQiX3M38K1VB1EnvILatSDrFU6uTY3/Mpy3W2NByaBuyo2Qjr58stoFz6 7KoHuZG2j9PphU9/Z5mtRaV2i9dcLBtSfnCF1czAjiajTofHN4DHaWf96D6+nDn1+6Ge A3v8dUjzHvHDJg2NSVEza3KIEaJmrdML0U0xmHQXPyb5YnsNRx68tYTxmXm2n0H4MG9O Nc6fW5K5PS/15/Sgp0h8Yw10+wDgBeXoAQk3WfkST+nV0r2l1/a3zmFbAJ4mTng58iyz xBgw== X-Gm-Message-State: AOAM532WyifwbmsD8Z9x11b/GiMz1vsMzbNv5tv4Ur1x15zyMARiS8Ds kE8hi4ah/a2e3+xiGSdyRWQ= X-Google-Smtp-Source: ABdhPJyhAkapNdkpklhp3VVPTNJjZxbq2eyxfS+sTZd+MNej0Btgyt5rp0RM8Y8rT9MnkqSvAoiaDg== X-Received: by 2002:a17:90b:496:: with SMTP id bh22mr4354896pjb.120.1604609621292; Thu, 05 Nov 2020 12:53:41 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 12:53:39 -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 0/5] mm: misc migrate cleanup and improvement Date: Tue, 3 Nov 2020 05:03:29 -0800 Message-Id: <20201103130334.13468-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. 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 | 148 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------- mm/vmscan.c | 2 +- 4 files changed, 99 insertions(+), 63 deletions(-)