Re: removing the global lock from sys_brk()

Andrea Arcangeli (andrea@suse.de)
Fri, 4 Jun 1999 14:36:01 +0200 (CEST)


On Thu, 3 Jun 1999, Chuck Lever wrote:

> */
> if (find_vma_intersection(mm, oldbrk, newbrk+PAGE_SIZE)) {
>- return -ENOMEM;
>+ ret = -ENOMEM;
> goto out;
> }

Usually in cases like this is better to put the ret = -ENOMEM in the fast
path, so the goto will be the slow path.

Andrea Arcangeli

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