Re: [PATCH] Avoid !__GFP_IO allocations to eat from memory reservations

Daniel Phillips
2001-06-14T17:15:17Z

On Thursday 14 June 2001 14:59, Marcelo Tosatti wrote:
> --- linux/mm/page_alloc.c.orig Thu Jun 14 11:00:14 2001
> +++ linux/mm/page_alloc.c Thu Jun 14 11:32:56 2001
> @@ -453,6 +453,12 @@
> int progress = try_to_free_pages(gfp_mask);
> if (progress || gfp_mask & __GFP_IO)
> goto try_again;
> + /*
> + * Fail in case no progress was made and the
> + * allocation may not be able to block on IO.
> + */
> + else
> + return NULL;
> }
> }
> }

Nitpick dept: the 'else' is redundant.

--
Daniel