[Devel] Re: [RFC][PATCH][3/4] Add reclaim support

KAMEZAWA Hiroyuki kamezawa.hiroyu at jp.fujitsu.com
Mon Feb 19 01:48:39 PST 2007


On Mon, 19 Feb 2007 12:20:42 +0530
Balbir Singh <balbir at in.ibm.com> wrote:

> +int memctlr_mm_overlimit(struct mm_struct *mm, void *sc_cont)
> +{
> +	struct container *cont;
> +	struct memctlr *mem;
> +	long usage, limit;
> +	int ret = 1;
> +
> +	if (!sc_cont)
> +		goto out;
> +
> +	read_lock(&mm->container_lock);
> +	cont = mm->container;

> +out:
> +	read_unlock(&mm->container_lock);
> +	return ret;
> +}
> +

should be
==
out_and_unlock:
	read_unlock(&mm->container_lock);
out_:
	return ret;


-Kame




More information about the Devel mailing list