Re: [PATCH 6/7] radixtree: introduce radix_tree_scan_hole()

Fengguang Wu
2007-07-21T06:36:41Z

On Fri, Jul 20, 2007 at 10:48:59PM -0700, Andrew Morton wrote:
> On Sat, 21 Jul 2007 12:43:06 +0800 Fengguang Wu <wfg@mail.ustc.edu.cn> wrote:
>
> > Introduce radix_tree_scan_hole(root, index, max_scan) to scan radix tree
> > for the first hole. It will be used in interleaved readahead.
>
> If you're ever feeling fantastically bored, please consider updating the
> userspace radix-tree test harness for this? Cook up a couple of testcases
> for the new functionality?

Thanks for the reminding. I'd add some test cases if I'm to optimize it.

But this _dumb_ scan function is obviously correct(and won't be too slow on
1M readahead). In fact it is pretty suitable for testing the optimized one ;)