lkml.org 
[lkml]   [2000]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch?] Re: Do ramdisk exec's map direct to buffer cache?
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.199 / U:0.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site