Re: [patch?] Re: Do ramdisk exec's map direct to buffer cache?

From: Andrea Arcangeli (andrea@suse.de)
Date: Tue Aug 01 2000 - 07:10:16 EST


On Mon, 31 Jul 2000, Linus Torvalds wrote:

>do something like
>
> int wait;
>
> if (!(gfp_mask & __GFP_IO))
> goto unlock_continue;
> wait = nr_dirty-- < 0;

We still want to recycle the clean buffers from a GFP_BUFFER allocation.
The fix I prefer is to pass gfp_mask to try_to_free_buffers and to call
sync_page_buffers only if __GFP_IO was set (checking for it inside
try_to_free_buffers).

Andrea

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



This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 21:00:05 EST