Re: [PATCH v4 4/7] btrfs: initial readahead code and prototypes

2011-06-30 Thread Arne Jansen
On 29.06.2011 23:49, Josef Bacik wrote: On 06/29/2011 04:10 PM, Arne Jansen wrote: This is the implementation for the generic read ahead framework. To trigger a readahead, btrfs_reada_add must be called. It will start a read ahead for the given range [start, end) on tree root. The returned

Re: [PATCH v4 4/7] btrfs: initial readahead code and prototypes

2011-06-30 Thread Josef Bacik
On 06/30/2011 03:37 AM, Arne Jansen wrote: On 29.06.2011 23:49, Josef Bacik wrote: On 06/29/2011 04:10 PM, Arne Jansen wrote: + struct kref refcnt; + wait_queue_head_t wait; +}; + +struct reada_extctl { + struct list_headlist; + struct

Re: [PATCH v4 4/7] btrfs: initial readahead code and prototypes

2011-06-30 Thread Arne Jansen
On 30.06.2011 14:49, Josef Bacik wrote: On 06/30/2011 03:37 AM, Arne Jansen wrote: On 29.06.2011 23:49, Josef Bacik wrote: On 06/29/2011 04:10 PM, Arne Jansen wrote: +struct krefrefcnt; +wait_queue_head_twait; +}; + +struct reada_extctl { +struct list_head

[PATCH v4 4/7] btrfs: initial readahead code and prototypes

2011-06-29 Thread Arne Jansen
This is the implementation for the generic read ahead framework. To trigger a readahead, btrfs_reada_add must be called. It will start a read ahead for the given range [start, end) on tree root. The returned handle can either be used to wait on the readahead to finish (btrfs_reada_wait), or to

Re: [PATCH v4 4/7] btrfs: initial readahead code and prototypes

2011-06-29 Thread Josef Bacik
On 06/29/2011 04:10 PM, Arne Jansen wrote: This is the implementation for the generic read ahead framework. To trigger a readahead, btrfs_reada_add must be called. It will start a read ahead for the given range [start, end) on tree root. The returned handle can either be used to wait on the