[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210602084752.3534-2-mgurtovoy@nvidia.com>
Date: Wed, 2 Jun 2021 11:47:52 +0300
From: Max Gurtovoy <mgurtovoy@...dia.com>
To: <akpm@...ux-foundation.org>, <linux-mm@...ck.org>
CC: <pasha.tatashin@...een.com>, <linux-kernel@...r.kernel.org>,
<logang@...tatee.com>, Max Gurtovoy <mgurtovoy@...dia.com>
Subject: [PATCH 2/2] mm,memory_hotplug: print the min alignment in check_pfn_span
The warning only prints the start and end pfns. Add min_align to the
warning print to add more info regarding the failure.
Signed-off-by: Max Gurtovoy <mgurtovoy@...dia.com>
---
mm/memory_hotplug.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index 8c3b423c1141..9e86e9ee0a10 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -289,8 +289,8 @@ static int check_pfn_span(unsigned long pfn, unsigned long nr_pages,
else
min_align = PAGES_PER_SECTION;
if (!IS_ALIGNED(pfn, min_align) || !IS_ALIGNED(nr_pages, min_align)) {
- WARN(1, "Misaligned __%s_pages start: %#lx end: %#lx\n",
- reason, pfn, pfn + nr_pages - 1);
+ WARN(1, "Misaligned __%s_pages min_align: %#lx start: %#lx end: %#lx\n",
+ reason, min_align, pfn, pfn + nr_pages - 1);
return -EINVAL;
}
return 0;
--
2.18.1
Powered by blists - more mailing lists