Re: [PATCH] struct file cleanup : the very large file_ra_state is now allocated only on demand.
From: Andi Kleen <hidden>
Date: 2005-08-18 02:57:34
Also in:
lkml
From: Andi Kleen <hidden>
Date: 2005-08-18 02:57:34
Also in:
lkml
You don't want to always have bad performance though, so you could attempt to allocate if either the pointer is null _or_ it points to the global structure?
Remember it's after a GFP_KERNEL OOM. If that fails most likely you have deadlocked somewhere else already because Linux's handling of that is so bad. Suboptimal readahead somewhere is the smallest of your problems. -Andi