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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080314103431.ff07070c.kamezawa.hiroyu@jp.fujitsu.com>
Date:	Fri, 14 Mar 2008 10:34:31 +0900
From:	KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To:	"Yinghai Lu" <yhlu.kernel@...il.com>
Cc:	"Andrew Morton" <akpm@...ux-foundation.org>,
	"Ingo Molnar" <mingo@...e.hu>, "Andi Kleen" <ak@...e.de>,
	"Christoph Lameter" <clameter@....com>,
	linux-kernel@...r.kernel.org,
	"Yasunori Goto" <y-goto@...fujitsu.com>
Subject: Re: [PATCH] mm: make reserve_bootmem can crossed the nodes

On Thu, 13 Mar 2008 16:45:42 -0700
"Yinghai Lu" <yhlu.kernel@...il.com> wrote:
> int __init reserve_bootmem(unsigned long addr, unsigned long size,
>  			    int flags)
>  {
> -	return reserve_bootmem_core(NODE_DATA(0)->bdata, addr, size, flags);
> +	int ret;
> +	bootmem_data_t *bdata;
> +	list_for_each_entry(bdata, &bdata_list, list) {
> +		ret = can_reserve_bootmem_core(bdata, addr, size, flags);
> +		if (ret < 0)
> +			return ret;
> +	}
> +	list_for_each_entry(bdata, &bdata_list, list)
> +		reserve_bootmem_core(bdata, addr, size, flags);
> +	return 0;
>  }

why list_for_each twice ?

Thanks,
-Kame

--
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