Re: [patch] getnamebuf second try (not in the slab)

Richard Henderson (rth@twiddle.net)
Mon, 18 Jan 1999 08:52:32 -0800


On Mon, Jan 18, 1999 at 04:36:56PM +0100, Andrea Arcangeli wrote:
> +static char * getnamebuf;
> +static unsigned long getnamebuf_inuse = 0;
> +
> +static char * __getname(void)
> +{
> + if (!test_and_set_bit(1, &getnamebuf_inuse))
> + return getnamebuf;
> + else
> + return (char *) __get_free_page(GFP_KERNEL);
> +}

What happened to the xchg that was used for this a while ago?

r~

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