Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp107703img; Wed, 20 Mar 2019 15:17:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxq7kS9/pylE/7G2lXV/OBSpffnlcJzKLmQlBJ4+cfVR6AOiOvrlYJJ7qWvcS7pvyCSpoM9 X-Received: by 2002:a65:6498:: with SMTP id e24mr300127pgv.346.1553120243822; Wed, 20 Mar 2019 15:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553120243; cv=none; d=google.com; s=arc-20160816; b=nKDeK2DBchaeXcFq6upSmZMbxdQZGm4MAm8R1Hdg5LKYBn3WoLsVv0a9r9XSu1a7UL hA0vBn47mK2K+V4i/TN8VkMWywimezjcJq5FAac1zsmJUeedHgerJWHXUaJeBMiLjxBS 1tUU3BzQrQVz7OM8Su3Mlzpn0Bo6Msf5/Tf1L4mdJhcxdKdXTcC+pimZXKO006dkPMZh q7485nbqF314oIHBba3eKJnNPkFOMszg2+VoNCvsV0fCTMZQ8ZTXORDh6UXrUaphZUg4 2oApiQm1t4JOEPhfO045ggVsGE86QWvRUa3mU0aBOXiVbYSI7LBodB3uaqnBzxVKLgoI Gfzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=M4h3uxY9mLN6LRL9SlAvP9Wuzq58G0qNJCL+78lrHpU=; b=0+H4kYhcVnQpJhA3PoCui8K1APmMboWIxB7m9psSphf1m4F1e7vTapznJgR0hhBrvM 3tcTL1L6X6ZOMsmBoQHaq4mO5aB2PIq9/iL9JMXQPIByeRIgBJzweAYjl5i2IcIKQ7ii 71LbVCtrSC1d+voPuejofgYubjJdEc/FwC3MnZH+v1uxJfusnVSSqDOvTWsfSi0i8wGK TB+PIpKZr1X5b1sKCIrHtjYKXdqssfHLBrxt/hBFlIJK3sjmmaHdSdJ+S02hLHG09v5+ rkJ84BBdyUw3YdN518F4oMX/p2/zKWcbXxtwXlT6Ut8/tomvhkD2JR5rHpRzbeP7+kEa 6yuw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si2503717pgr.203.2019.03.20.15.17.08; Wed, 20 Mar 2019 15:17:23 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727538AbfCTWQd (ORCPT + 99 others); Wed, 20 Mar 2019 18:16:33 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:40196 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727437AbfCTWQc (ORCPT ); Wed, 20 Mar 2019 18:16:32 -0400 Received: from localhost.localdomain (c-73-223-200-170.hsd1.ca.comcast.net [73.223.200.170]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 90ADA7056; Wed, 20 Mar 2019 22:16:31 +0000 (UTC) Date: Wed, 20 Mar 2019 15:16:30 -0700 From: Andrew Morton To: Souptick Joarder Cc: Yang Shi , chrubis@suse.cz, Vlastimil Babka , kirill@shutemov.name, osalvador@suse.de, stable@vger.kernel.org, Linux-MM , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: mempolicy: make mbind() return -EIO when MPOL_MF_STRICT is specified Message-Id: <20190320151630.9c7c604a96f0a892c29befdc@linux-foundation.org> In-Reply-To: References: <1553020556-38583-1-git-send-email-yang.shi@linux.alibaba.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Mar 2019 11:23:03 +0530 Souptick Joarder wrote: > > --- a/mm/mempolicy.c > > +++ b/mm/mempolicy.c > > @@ -447,6 +447,13 @@ static inline bool queue_pages_required(struct page *page, > > return node_isset(nid, *qp->nmask) == !(flags & MPOL_MF_INVERT); > > } > > > > +/* > > + * The queue_pages_pmd() may have three kind of return value. > > + * 1 - pages are placed on he right node or queued successfully. > > Minor typo -> s/he/the ? Yes, that comment needs some help. This? --- a/mm/mempolicy.c~mm-mempolicy-make-mbind-return-eio-when-mpol_mf_strict-is-specified-fix +++ a/mm/mempolicy.c @@ -429,9 +429,9 @@ static inline bool queue_pages_required( } /* - * The queue_pages_pmd() may have three kind of return value. - * 1 - pages are placed on he right node or queued successfully. - * 0 - THP get split. + * queue_pages_pmd() has three possible return values: + * 1 - pages are placed on the right node or queued successfully. + * 0 - THP was split. * -EIO - is migration entry or MPOL_MF_STRICT was specified and an existing * page was already on a node that does not follow the policy. */ _