lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20071101095243.ce7fb054.kamezawa.hiroyu@jp.fujitsu.com>
Date:	Thu, 1 Nov 2007 09:52:43 +0900
From:	KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To:	linux-kernel@...r.kernel.org
Cc:	akpm@...ux-foundation.org, mm-commits@...r.kernel.org,
	pbadari@...ibm.com, benh@...nel.crashing.org,
	galak@...e.crashing.org, haveblue@...ibm.com, paulus@...ba.org,
	tony.luck@...el.com
Subject: Re: + add-remove_memory-for-ppc64-2.patch added to -mm tree

On Wed, 31 Oct 2007 15:58:33 -0700
akpm@...ux-foundation.org wrote:

> +int remove_memory(u64 start, u64 size)
> +{
> +	unsigned long start_pfn, end_pfn;
> +	int ret;
> +
> +	start_pfn = start >> PAGE_SHIFT;
> +	end_pfn = start_pfn + (size >> PAGE_SHIFT);
> +	ret = offline_pages(start_pfn, end_pfn, 120 * HZ);
> +	if (ret)
> +		goto out;
> +	/* we can free mem_map at this point */
> +out:
> +	return ret;
> +}
> +EXPORT_SYMBOL_GPL(remove_memory);

Then, remove_memory() is now generic. 
Ok.
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ