mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	[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>
This commit is contained in:
		
							parent
							
								
									e139aa595c
								
							
						
					
					
						commit
						3b30bbd963
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -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; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /*
 | /*
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Steven Pratt
						Steven Pratt