Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751262AbdCICxL (ORCPT ); Wed, 8 Mar 2017 21:53:11 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33506 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750781AbdCICxK (ORCPT ); Wed, 8 Mar 2017 21:53:10 -0500 Date: Thu, 9 Mar 2017 10:52:55 +0800 From: Wei Yang To: Wei Yang Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, tj@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] x86/mm/numa: trivial fix on typo and error message Message-ID: <20170309025255.GA14971@WeideMacBook-Pro.local> Reply-To: Wei Yang References: <20170206153529.14614-1-richard.weiyang@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline In-Reply-To: <20170206153529.14614-1-richard.weiyang@gmail.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2527 Lines: 77 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear masters~ Would you like to share some comments on these two? On Mon, Feb 06, 2017 at 11:35:28PM +0800, Wei Yang wrote: >When allocating pg_data in alloc_node_data(), it will try to allocate from >local node first and then from any node. If it fails at the second trial, >it means there is not available memory on any node. > >This patch fixes the error message and correct one typo. > >Signed-off-by: Wei Yang >--- > arch/x86/mm/numa.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c >index 4366242356c5..3e9110b34147 100644 >--- a/arch/x86/mm/numa.c >+++ b/arch/x86/mm/numa.c >@@ -201,8 +201,8 @@ static void __init alloc_node_data(int nid) > nd_pa =3D __memblock_alloc_base(nd_size, SMP_CACHE_BYTES, > MEMBLOCK_ALLOC_ACCESSIBLE); > if (!nd_pa) { >- pr_err("Cannot find %zu bytes in node %d\n", >- nd_size, nid); >+ pr_err("Cannot find %zu bytes in any node\n", >+ nd_size); > return; > } > } >@@ -225,7 +225,7 @@ static void __init alloc_node_data(int nid) > * numa_cleanup_meminfo - Cleanup a numa_meminfo > * @mi: numa_meminfo to clean up > * >- * Sanitize @mi by merging and removing unncessary memblks. Also check f= or >+ * Sanitize @mi by merging and removing unnecessary memblks. Also check = for > * conflicts and clear unused memblks. > * > * RETURNS: >--=20 >2.11.0 --=20 Wei Yang Help you, Help me --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYwMOHAAoJEKcLNpZP5cTdMiIP/jzLhZVEbhQ0XLJjNh4Cy+c0 pPKkrMXm9YerR/WOQVsYGSXpoBG0W5iiMDW/I8BWll+XXGW34RjlJWX2ntiyTNBw cwrvE33JuJjI960/31MXYHixj0Ws4IVy7ioaa5qvrdk0IEIcJJvtED6kJ3q2a2jx vZEjwk+/Nj6pDFhZOI0muOCgZy4h7Izz5aB4KFEFwNXB4A7MkNS/KiwYcZPQQVti 7BFlBi2Ii9omh9/wHdhqDp/oDYaTHdo8NrSlTypQzxEWtlJQT4PsKSpsjakUqHLT dccAR3/+Y+xYknzMnmNnpAc93qsu6ASCh8LF+r78xy8qs7z3+bRtXVhjbVH7o4vG kGJW4tOoHTxRhx1hPvQ8XU4KUVoiwr8WmillaLcApxl7049lwVWtqfaijW23a+V2 PLRu6/hz9DkXRI3o18731tzA5nDjRY3HS2C0frGZROnzv7x5qoSq5CxPRZiL8rhI MOcje/5G1k6oLULQ12r9Ctegx81/wtH/Y0ekXCCtK0c8RThfEzQDE7uDcrbFrCaO BzD2sdgU+eZS2zusP3wvHkbBiAv8y/Ywohx2vpEm4JAx4Z22RkV35BWrXNjXY6P4 pF/8udohHJmGaT8UG9uGqQU0YXqa8wWms/IBOK+GMK/lhbyt8rJfiIPDc9fWnI4G keeHDcI4me4EARPAKgIA =bOQa -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e--