readahead: remove redundant test in shrink_readahead_size_eio()
authorWu Fengguang <fengguang.wu@intel.com>
Tue, 16 Jun 2009 22:31:36 +0000 (15:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jun 2009 02:47:30 +0000 (19:47 -0700)
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>
mm/filemap.c

index 734891d0663d7a64328ee2f81ae2dcd2e57f3dce..2e9bcc2e7977b6fa2975fe282bd1bab4208f1bf9 100644 (file)
@@ -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;
 }