diff options
author | Steven Pratt <slpratt@austin.ibm.com> | 2005-09-06 18:17:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 19:57:25 -0400 |
commit | 3b30bbd963ac2606b0377b39c9d148d6eeef7dce (patch) | |
tree | 40365e8055cf698f39c2e5891fbca375dea7ce76 | |
parent | e139aa595c5d3bd01699530cbe017dec75fdb07f (diff) |
[PATCH] readahead: reset cache_hit earlier
We don't reset the cache hit count until after readahead does a successful
readahead. This seems to leave a corner case open where we miss in cache,
but don't restart the readhead right away.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | mm/readahead.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/readahead.c b/mm/readahead.c index b840e7c6ea74..d0b50034e245 100644 --- a/mm/readahead.c +++ b/mm/readahead.c | |||
@@ -540,6 +540,7 @@ void handle_ra_miss(struct address_space *mapping, | |||
540 | { | 540 | { |
541 | ra->flags |= RA_FLAG_MISS; | 541 | ra->flags |= RA_FLAG_MISS; |
542 | ra->flags &= ~RA_FLAG_INCACHE; | 542 | ra->flags &= ~RA_FLAG_INCACHE; |
543 | ra->cache_hit = 0; | ||
543 | } | 544 | } |
544 | 545 | ||
545 | /* | 546 | /* |