Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6056d619 authored by Tang Chen's avatar Tang Chen Committed by Linus Torvalds
Browse files

mm: Remove unused parameter of pages_correctly_reserved()



nr_pages is not used in pages_correctly_reserved().
So remove it.

Signed-off-by: default avatarTang Chen <tangchen@cn.fujitsu.com>
Reviewed-by: default avatarWang Shilong <wangsl-fnst@cn.fujitsu.com>
Reviewed-by: default avatarWen Congyang <wency@cn.fujitsu.com>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7a6f93b0
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -207,8 +207,7 @@ int memory_isolate_notify(unsigned long val, void *v)
 * The probe routines leave the pages reserved, just as the bootmem code does.
 * The probe routines leave the pages reserved, just as the bootmem code does.
 * Make sure they're still that way.
 * Make sure they're still that way.
 */
 */
static bool pages_correctly_reserved(unsigned long start_pfn,
static bool pages_correctly_reserved(unsigned long start_pfn)
					unsigned long nr_pages)
{
{
	int i, j;
	int i, j;
	struct page *page;
	struct page *page;
@@ -256,7 +255,7 @@ memory_block_action(unsigned long phys_index, unsigned long action, int online_t


	switch (action) {
	switch (action) {
		case MEM_ONLINE:
		case MEM_ONLINE:
			if (!pages_correctly_reserved(start_pfn, nr_pages))
			if (!pages_correctly_reserved(start_pfn))
				return -EBUSY;
				return -EBUSY;


			ret = online_pages(start_pfn, nr_pages, online_type);
			ret = online_pages(start_pfn, nr_pages, online_type);