提交 3b30bbd9 编写于 作者: S Steven Pratt 提交者: Linus Torvalds

[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: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 e139aa59
...@@ -540,6 +540,7 @@ void handle_ra_miss(struct address_space *mapping, ...@@ -540,6 +540,7 @@ void handle_ra_miss(struct address_space *mapping,
{ {
ra->flags |= RA_FLAG_MISS; ra->flags |= RA_FLAG_MISS;
ra->flags &= ~RA_FLAG_INCACHE; ra->flags &= ~RA_FLAG_INCACHE;
ra->cache_hit = 0;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册