Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp182109ybl; Thu, 5 Dec 2019 17:35:45 -0800 (PST) X-Google-Smtp-Source: APXvYqwSLj9D+98ytW8hoiMYb5PzfhAohEAVqGy49t7L68emf2yPn5h5yGlujSkB3mSabXK5sRg9 X-Received: by 2002:a9d:6c06:: with SMTP id f6mr8822608otq.318.1575596145745; Thu, 05 Dec 2019 17:35:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575596145; cv=none; d=google.com; s=arc-20160816; b=khaNwJMlsqyPBsqjuX+Mk4Q8X6Ofi55ESmFQ9t2jF/TSclTzwambC9+q3gsjSGmiRP AdjUqbGYilRVGqWpw3Mxl3ZE+oQaa2Pc/zXI6IvFHrcxlRMbpZt8PVLSfMqGJnDK5jep tTRyWfvdFOP67OEcqAGWEUSy6R1fc84zM49LGLf8LRAhkdHNcu3TGL69ku0PY5LNx/MC qmgab74uQQxKOFQ6im8A0Q63eQMP/An5IGIMNt0AB+p+FvgxxW5vYI+HPDFSP/67HqKd ZgmPqcMFXwvMnGHr6y5F3jMOk2ZirVowth9Uue1ddcOUhPGmLzqp2EvjWni/Ny4Xj0vd XKBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=y/qRyKESANcR6GkgU2H9/nrAbCFU4/NtoIRMTdhw9d8=; b=zwD1yh1Xi1rI4PgxdgSF/H4fjfb8Eq0OhvBpAd+s2H4tjozjO28Ds158kc81n8poTA MPIYtXEO8guW/seo1OvHS6u+3oQwyOuYhI1LEJLOEyd/WD3pGDfqU/9/6uNh9nHb8WyI 65m3rc8+yNSM+snnu76HErEhYuvCUBKgDFl2+Mot+cwAISPTPyIvzd5lHxQlQj1BjmLs j3mey3jFm7sTjEWCIMTFQb+v9jiqmdTpKObnWTtUhjtmnXzjz9RvHI1Zashy14QyBryr MLYk9vDOMuOwOPERAGCUnbpdGEtZmhq3BDcH7tXdvdZqBq3VhlX2VOIi0FDcpzBqIxI2 F/XQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o125si6117126oig.20.2019.12.05.17.35.32; Thu, 05 Dec 2019 17:35:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726119AbfLFBfD (ORCPT + 99 others); Thu, 5 Dec 2019 20:35:03 -0500 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:53825 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbfLFBfD (ORCPT ); Thu, 5 Dec 2019 20:35:03 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04427;MF=yang.shi@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0Tk4jgLJ_1575596090; Received: from e19h19392.et15sqa.tbsite.net(mailfrom:yang.shi@linux.alibaba.com fp:SMTPD_---0Tk4jgLJ_1575596090) by smtp.aliyun-inc.com(127.0.0.1); Fri, 06 Dec 2019 09:34:57 +0800 From: Yang Shi To: mtk.manpages@gmail.com, cl@linux.com, jhubbard@nvidia.com, mhocko@suse.com, cai@lca.pw, akpm@linux-foundation.org Cc: yang.shi@linux.alibaba.com, linux-man@vger.kernel.org, linux-api@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] move_pages.2: not return ENOENT if the page are already on the target nodes Date: Fri, 6 Dec 2019 09:34:50 +0800 Message-Id: <1575596090-115377-1-git-send-email-yang.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit e78bbfa82624 ("mm: stop returning -ENOENT from sys_move_pages() if nothing got migrated"), move_pages doesn't return -ENOENT anymore if the pages are already on the target nodes, but this change is never reflected in manpage. Cc: Michael Kerrisk Cc: Christoph Lameter Cc: John Hubbard Cc: Michal Hocko Cc: Qian Cai Signed-off-by: Yang Shi --- man2/move_pages.2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/man2/move_pages.2 b/man2/move_pages.2 index 2d96468..2a2f3cd 100644 --- a/man2/move_pages.2 +++ b/man2/move_pages.2 @@ -192,9 +192,8 @@ was specified or an attempt was made to migrate pages of a kernel thread. One of the target nodes is not online. .TP .B ENOENT -No pages were found that require moving. -All pages are either already -on the target node, not present, had an invalid address or could not be +No pages were found. +All pages are either not present, had an invalid address or could not be moved because they were mapped by multiple processes. .TP .B EPERM -- 1.8.3.1