diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2009-06-16 15:31:20 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-16 19:47:28 -0700 |
commit | f7e839dd36fd940b0202cfb7d39b2a1b2dc59b1b (patch) | |
tree | 5c99332a62aa8135bd58485e7f3c22634ecdc90c /mm/fadvise.c | |
parent | 1ebf26a9b338534def47f307c6c8694b6dfc0a79 (diff) | |
download | linux-stable-f7e839dd36fd940b0202cfb7d39b2a1b2dc59b1b.tar.gz linux-stable-f7e839dd36fd940b0202cfb7d39b2a1b2dc59b1b.tar.bz2 linux-stable-f7e839dd36fd940b0202cfb7d39b2a1b2dc59b1b.zip |
readahead: move max_sane_readahead() calls into force_page_cache_readahead()
Impact: code simplification.
Cc: Nick Piggin <npiggin@suse.de>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: Ying Han <yinghan@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/fadvise.c')
-rw-r--r-- | mm/fadvise.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/fadvise.c b/mm/fadvise.c index 54a0f8040afa..e43359214f6f 100644 --- a/mm/fadvise.c +++ b/mm/fadvise.c @@ -101,7 +101,7 @@ SYSCALL_DEFINE(fadvise64_64)(int fd, loff_t offset, loff_t len, int advice) ret = force_page_cache_readahead(mapping, file, start_index, - max_sane_readahead(nrpages)); + nrpages); if (ret > 0) ret = 0; break; |