diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-08-06 19:04:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-06 21:01:15 -0400 |
commit | 3e2faa085448d5c478ebc9d5f6cb4d822467f4d7 (patch) | |
tree | 1c189513f09b2ea545aee48e5b772bc4ca2d7247 /mm | |
parent | c42e5715617232563f0cf9f231d86b5133c4487e (diff) |
mm/readahead.c: remove unused file_ra_state from count_history_pages
count_history_pages does only call page_cache_prev_hole in rcu_lock
context using address_space mapping. There's no need to have
file_ra_state here.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Acked-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: David Rientjes <rientjes@google.com>
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/readahead.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/readahead.c b/mm/readahead.c index 0ca36a7770b1..17b9172ec37f 100644 --- a/mm/readahead.c +++ b/mm/readahead.c | |||
@@ -326,7 +326,6 @@ static unsigned long get_next_ra_size(struct file_ra_state *ra, | |||
326 | * - thrashing threshold in memory tight systems | 326 | * - thrashing threshold in memory tight systems |
327 | */ | 327 | */ |
328 | static pgoff_t count_history_pages(struct address_space *mapping, | 328 | static pgoff_t count_history_pages(struct address_space *mapping, |
329 | struct file_ra_state *ra, | ||
330 | pgoff_t offset, unsigned long max) | 329 | pgoff_t offset, unsigned long max) |
331 | { | 330 | { |
332 | pgoff_t head; | 331 | pgoff_t head; |
@@ -349,7 +348,7 @@ static int try_context_readahead(struct address_space *mapping, | |||
349 | { | 348 | { |
350 | pgoff_t size; | 349 | pgoff_t size; |
351 | 350 | ||
352 | size = count_history_pages(mapping, ra, offset, max); | 351 | size = count_history_pages(mapping, offset, max); |
353 | 352 | ||
354 | /* | 353 | /* |
355 | * not enough history pages: | 354 | * not enough history pages: |