Subject: Re: loaning for read() of regular files
To: Chuck Silvers <chuq@chuq.com>
From: enami tsugutomo <enami@sm.sony.co.jp>
List: tech-kern
Date: 02/17/2005 13:01:43
Chuck Silvers <chuq@chuq.com> writes:

> +	memset(oanons, 0, sizeof(oanons));
		:
> +	for (i = 0; i < npages; i++) {
		:
> +		if (anon) {
> +			oanons[oanon++] = anon;
		:
> +	}
		:
> +	for (i = 0; i < oanon; i++) {
> +		anon = oanons[i];
> +		if (!anon) {
> +			continue;
> +		}

memset() and if (!anon) statement aren't necessary.

enami.