Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp434283ybl; Thu, 5 Dec 2019 23:50:04 -0800 (PST) X-Google-Smtp-Source: APXvYqw/dAGvQw7c35558KvuFSO4rA9b4HDuYCNI8pwAu3NCaf1LSpv+e5S5xUlGK1+cY4BIT1UP X-Received: by 2002:a54:4781:: with SMTP id o1mr10675184oic.117.1575618604035; Thu, 05 Dec 2019 23:50:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575618604; cv=none; d=google.com; s=arc-20160816; b=T7QcSu03ij9Cgp5U3RLH493BCOmTMLgSWWeNJBRrV3FQm14sdxag6pB+qTVZnZ+5WJ 6IXC5cnCnVbKAhU4D7HUgvKMN/Nm+QxGyrNYwocyQ30lW1XJ9ltpS/6BwRs5cvtXmisU YbyC3tU+nU66hbRz/DYGVYQr6DqdGMfP7DTzcoDh6ppAmVOx1r9IZv3Lu1sUZS9C3L+I eoiPVDxRHk2lb/ANd+6h3BUdoXW0PRpJwpmw3iTA/kGGb+TnP4RPUJOVhLrVRLqCxOgZ 1Swe4QRpsHj1/E1shfMHEzN1yJuh6UfziIq+Lx3pOzGtcLJAEV+s0HTafh3czCXU9gG+ BhBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qtb1WWUgl9wqPcOJD9MpTiHXbCPls9RWYFCWxX8gA38=; b=prAJyo+ExEtsXHkIn5/+UxBL6H9lo3rqJDlOlKfF6jWOqR2PzJml2o1yCF5zUnQAek nIgpwzGdcSU4ZjvehAs0DYMDU8YsfDqYmRZyWGoLquTd3oSdzTG07x8O38V3aM66e9KI m5a1LFjzBsYvBuh3bWXF0MeD1lWjTW58PIqIl8qR18JnF0O68O2TyRghp5jLys3Scg7m bZ9aXALASWix+BeSINJSwc5uTqbVUkDR6BL7wUBhTVt09O4p1eCZLz6vEHymjaPHmRgD 1Y6+sgNaTQ22ghOR4Bx8HbXMSs8k9hLZydvRA/Mu+LtNgZX7Dz7kUz6AjKET4C1e11H2 6tmg== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 81si6389730otj.236.2019.12.05.23.49.50; Thu, 05 Dec 2019 23:50:04 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726475AbfLFHsA (ORCPT + 99 others); Fri, 6 Dec 2019 02:48:00 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:56076 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725858AbfLFHsA (ORCPT ); Fri, 6 Dec 2019 02:48:00 -0500 Received: by mail-wm1-f68.google.com with SMTP id q9so6749357wmj.5; Thu, 05 Dec 2019 23:47:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qtb1WWUgl9wqPcOJD9MpTiHXbCPls9RWYFCWxX8gA38=; b=lm8i9v8tLSpKiqaGRPa9F2IzSo+r+1zi8aYqVh7MUfJ26Hi+dxEp5LiNcLbjSLj98U vR6l4ibPkEO2xL76FZoj2WHmrDvg0LuPjh/2pkJEDuDqdCND/b9OY/rfYCmyFSCA3mno y9MPYkL5vfCfrFzFh7A5svvxnS13xLPXWMYRVQn182/5wg6Dtj4E/LE0qydGXE+1pEZN UeH/iSSkoW8WE8UnhawYnReKvsC8cyYhHXsDb7/TTKHM/duUeaLD2N8XU6qyb2op2sbq 7QOTJ6aOAFmkITF4W1LfVnAIdSXeONuEtIHf3st98Z60nc39aSt1JgWiByvB38owi1lw 80Ug== X-Gm-Message-State: APjAAAV/YEvQLlIDxH8V/PFykz7gE/fq4hhI/xTyfwyH8XO6DYA7eWUX vHk4HAa9GNZMC+kgHaDYI8w= X-Received: by 2002:a1c:30b:: with SMTP id 11mr9307143wmd.171.1575618478227; Thu, 05 Dec 2019 23:47:58 -0800 (PST) Received: from localhost (ip-37-188-170-11.eurotel.cz. [37.188.170.11]) by smtp.gmail.com with ESMTPSA id u18sm15209133wrt.26.2019.12.05.23.47.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 23:47:57 -0800 (PST) Date: Fri, 6 Dec 2019 08:47:56 +0100 From: Michal Hocko To: Yang Shi Cc: mtk.manpages@gmail.com, cl@linux.com, jhubbard@nvidia.com, cai@lca.pw, akpm@linux-foundation.org, linux-man@vger.kernel.org, linux-api@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] move_pages.2: not return ENOENT if the page are already on the target nodes Message-ID: <20191206074756.GI28317@dhcp22.suse.cz> References: <1575596090-115377-1-git-send-email-yang.shi@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1575596090-115377-1-git-send-email-yang.shi@linux.alibaba.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 06-12-19 09:34:50, Yang Shi wrote: > 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. I would rather not put any specifics here because those reasons might differ in future. I would simply go with "No pages were found that require or could be moved." -- Michal Hocko SUSE Labs