diff options
| author | 2007-07-19 01:47:58 -0700 | |
|---|---|---|
| committer | 2007-07-19 10:04:43 -0700 | |
| commit | f615bfca468c9b80ed2d09be5fdbaf470a32c045 (patch) | |
| tree | 4771fd91ae020efaafbe653ad78ba5e32d56e8a3 /include/linux/start_kernel.h | |
| parent | readahead: add look-ahead support to __do_page_cache_readahead() (diff) | |
readahead: MIN_RA_PAGES/MAX_RA_PAGES macros
Define two convenient macros for read-ahead:
- MAX_RA_PAGES: rounded down counterpart of VM_MAX_READAHEAD
- MIN_RA_PAGES: rounded _up_ counterpart of VM_MIN_READAHEAD
Note that the rounded up MIN_RA_PAGES will work flawlessly with _large_
page sizes like 64k.
Signed-off-by: Fengguang Wu <wfg@mail.ustc.edu.cn>
Cc: Steven Pratt <slpratt@austin.ibm.com>
Cc: Ram Pai <linuxram@us.ibm.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/start_kernel.h')
0 files changed, 0 insertions, 0 deletions
