Re: [PATCH v1 3/5] btrfs: initial readahead code and prototypes

2011-05-26 Thread David Sterba
Hi, On Mon, May 23, 2011 at 02:59:06PM +0200, Arne Jansen wrote: +static struct reada_zone *reada_find_zone(struct btrfs_fs_info *fs_info, + struct btrfs_device *dev, u64 logical, + struct btrfs_multi_bio *multi) +{

Re: [PATCH v1 3/5] btrfs: initial readahead code and prototypes

2011-05-26 Thread Miao Xie
On thu, 26 May 2011 12:14:21 +0200, David Sterba wrote: Hi, On Mon, May 23, 2011 at 02:59:06PM +0200, Arne Jansen wrote: +static struct reada_zone *reada_find_zone(struct btrfs_fs_info *fs_info, + struct btrfs_device *dev, u64 logical, +

Re: [PATCH v1 3/5] btrfs: initial readahead code and prototypes

2011-05-26 Thread Arne Jansen
On 26.05.2011 12:47, Miao Xie wrote: On thu, 26 May 2011 12:14:21 +0200, David Sterba wrote: Hi, On Mon, May 23, 2011 at 02:59:06PM +0200, Arne Jansen wrote: +static struct reada_zone *reada_find_zone(struct btrfs_fs_info *fs_info, + struct btrfs_device

[PATCH v1 3/5] btrfs: initial readahead code and prototypes

2011-05-23 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