Xin LI 82aebf697c Add two new fcntls to enable/disable read-ahead:
- F_READAHEAD: specify the amount for sequential access.  The amount is
   specified in bytes and is rounded up to nearest block size.
 - F_RDAHEAD: Darwin compatible version that use 128KB as the sequential
   access size.

A third argument of zero disables the read-ahead behavior.

Please note that the read-ahead amount is also constrainted by sysctl
variable, vfs.read_max, which may need to be raised in order to better
utilize this feature.

Thanks Igor Sysoev for proposing the feature and submitting the original
version, and kib@ for his valuable comments.

Submitted by:	Igor Sysoev <is rambler-co ru>
Reviewed by:	kib@
MFC after:	1 month
2009-09-28 16:59:47 +00:00
..
2008-06-20 14:47:06 +00:00
2008-04-03 02:41:54 +00:00
2006-09-26 09:47:46 +00:00
2005-12-13 13:43:35 +00:00
2008-04-03 02:41:54 +00:00
2005-12-13 13:43:35 +00:00
2009-06-01 09:32:12 +00:00
2008-02-25 13:03:18 +00:00
2008-11-29 14:32:14 +00:00
2006-09-17 21:27:35 +00:00
2009-09-16 03:49:54 +00:00
2006-10-07 05:13:32 +00:00
2007-04-05 21:17:52 +00:00
2008-11-11 14:55:59 +00:00
2009-03-27 11:03:02 +00:00
2009-06-15 21:52:27 +00:00
2007-05-14 13:58:54 +00:00
2007-12-19 03:33:13 +00:00
2009-09-18 14:17:00 +00:00
2006-09-17 21:27:35 +00:00
2005-12-13 13:43:35 +00:00
2009-01-12 13:12:02 +00:00
2007-06-18 01:50:03 +00:00
2007-06-18 01:50:03 +00:00