Re: [PATCH 4/9] readahead: data structure and routines

2007-06-12 Thread Fengguang Wu
Hi Rusty, On Wed, Jun 13, 2007 at 10:27:19AM +1000, Rusty Russell wrote: > On Tue, 2007-06-12 at 20:07 +0800, Fengguang Wu wrote: > > or preferably: > > > > pgoff_t start; /* where readahead started */ > > unsigned long size;/* # of readahead pages */ > >

Re: [PATCH 4/9] readahead: data structure and routines

2007-06-12 Thread Rusty Russell
On Tue, 2007-06-12 at 20:07 +0800, Fengguang Wu wrote: > Hi Rusty, Hi Fengguang, > or preferably: > > pgoff_t start; /* where readahead started */ > unsigned long size;/* # of readahead pages */ > unsigned long async_size; /* do asynchronous r

Re: [PATCH 4/9] readahead: data structure and routines

2007-06-12 Thread Fengguang Wu
Hi Rusty, On Tue, Jun 12, 2007 at 01:30:50PM +1000, Rusty Russell wrote: > On Thu, 2007-05-17 at 06:47 +0800, Fengguang Wu wrote: > > /* > > * Track a single file's readahead state > > + * > > + * #|==#==| > > + * ^

Re: [PATCH 4/9] readahead: data structure and routines

2007-06-11 Thread Rusty Russell
On Thu, 2007-05-17 at 06:47 +0800, Fengguang Wu wrote: > /* > * Track a single file's readahead state > + * > + * #|==#==| > + * ^^ ^ ^ > + * file_ra_state.la_index.ra

[PATCH 4/9] readahead: data structure and routines

2007-05-16 Thread Fengguang Wu
Extend struct file_ra_state to support the on-demand readahead logic. Also define some helpers for it. Signed-off-by: Fengguang Wu <[EMAIL PROTECTED]> --- include/linux/fs.h | 64 +++ mm/readahead.c | 19 2 files changed, 83 insertions