On Thu, May 25, 2006 at 09:23:11AM -0700, Andrew Morton wrote:
> Wu Fengguang <[email protected]> wrote:
> >
> > An new page flag PG_readahead is introduced as a look-ahead mark, which
> > reminds the caller to give the adaptive read-ahead logic a chance to do
> > read-ahead ahead of time for I/O pipelining.
> >
> > It roughly corresponds to `ahead_start' of the stock read-ahead logic.
> >
>
> This isn't a very revealing description of what this flag does.
Updated to:
An new page flag PG_readahead is introduced.
It acts as a look-ahead mark, which tells the page reader:
Hey, it's time to invoke the adaptive read-ahead logic!
For the sake of I/O pipelining, don't wait until it runs out of
cached pages. ;-)
> > +#define __SetPageReadahead(page) __set_bit(PG_readahead, &(page)->flags)
>
> uh-oh. This is extremly risky. Needs extensive justification, please.
Ok, removed the ugly __ :-)
Wu
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]