Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> wrote: > As requested, fix up readahead_expand() so as to not confuse the ondemand > algorithm. Also make the documentation slightly better. Dave, could you > put in some debug and check this actually works? I don't generally test > with any filesystems that use readahead_expand(), but printing (index, > nr_to_read, lookahead_size) in page_cache_ra_unbounded() would let a human > (such as your good self) determine whether it's working approximately > as designed. I added the patches to my fscache-netfs-lib branch and ran the quick group of xfstests with afs and got the same results. David