aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorFengguang Wu <wfg@mail.ustc.edu.cn>2007-07-19 04:47:55 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 13:04:43 -0400
commitd77c2d7cc5126639a47d73300b40d461f2811a0f (patch)
treed02b32ca92fde9a04be9bee0f0b7c8961479448c /mm
parent2ba2d00363975242dee9bb22cf798b487e3cd61e (diff)
readahead: introduce PG_readahead
Introduce a new page flag: PG_readahead. It acts as a look-ahead mark, which tells the page reader: Hey, it's time to invoke the read-ahead logic. For the sake of I/O pipelining, don't wait until it runs out of cached pages! 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> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index e2a10b957f23..2165be9462c0 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -617,7 +617,7 @@ static int prep_new_page(struct page *page, int order, gfp_t gfp_flags)
617 if (PageReserved(page)) 617 if (PageReserved(page))
618 return 1; 618 return 1;
619 619
620 page->flags &= ~(1 << PG_uptodate | 1 << PG_error | 620 page->flags &= ~(1 << PG_uptodate | 1 << PG_error | 1 << PG_readahead |
621 1 << PG_referenced | 1 << PG_arch_1 | 621 1 << PG_referenced | 1 << PG_arch_1 |
622 1 << PG_owner_priv_1 | 1 << PG_mappedtodisk); 622 1 << PG_owner_priv_1 | 1 << PG_mappedtodisk);
623 set_page_private(page, 0); 623 set_page_private(page, 0);