summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2009-06-16 15:31:36 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-16 19:47:30 -0700
commit61b7cbdba2f3c588a0cf3db574c562805454b09b (patch)
tree657756b1ab5dc5fd63b341d999d492b868f4309c
parent10be0b372cac50e2e7a477852f98bf069a97a3fa (diff)
downloadop-kernel-dev-61b7cbdba2f3c588a0cf3db574c562805454b09b.zip
op-kernel-dev-61b7cbdba2f3c588a0cf3db574c562805454b09b.tar.gz
readahead: remove redundant test in shrink_readahead_size_eio()
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--mm/filemap.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mm/filemap.c b/mm/filemap.c
index 734891d..2e9bcc2 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1004,9 +1004,6 @@ EXPORT_SYMBOL(grab_cache_page_nowait);
static void shrink_readahead_size_eio(struct file *filp,
struct file_ra_state *ra)
{
- if (!ra->ra_pages)
- return;
-
ra->ra_pages /= 4;
}
OpenPOWER on IntegriCloud