aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorFengguang Wu <wfg@mail.ustc.edu.cn>2007-10-16 04:24:36 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:42:52 -0400
commit535443f51543df61111bbd234300ae549d220448 (patch)
treee9b022969776132b9fd3bde351673edc006a1bac /include/linux
parent7ff81078d8b9f3d05a27b7bd3786ffb1ef1b0d1f (diff)
readahead: remove several readahead macros
Remove VM_MAX_CACHE_HIT, MAX_RA_PAGES and MIN_RA_PAGES. Signed-off-by: Fengguang Wu <wfg@mail.ustc.edu.cn> Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mm.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index fbff8e481cc4..291c4cc06ea7 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1106,8 +1106,6 @@ int write_one_page(struct page *page, int wait);
1106/* readahead.c */ 1106/* readahead.c */
1107#define VM_MAX_READAHEAD 128 /* kbytes */ 1107#define VM_MAX_READAHEAD 128 /* kbytes */
1108#define VM_MIN_READAHEAD 16 /* kbytes (includes current page) */ 1108#define VM_MIN_READAHEAD 16 /* kbytes (includes current page) */
1109#define VM_MAX_CACHE_HIT 256 /* max pages in a row in cache before
1110 * turning readahead off */
1111 1109
1112int do_page_cache_readahead(struct address_space *mapping, struct file *filp, 1110int do_page_cache_readahead(struct address_space *mapping, struct file *filp,
1113 pgoff_t offset, unsigned long nr_to_read); 1111 pgoff_t offset, unsigned long nr_to_read);