Browse Source

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>
Wu Fengguang 16 years ago
parent
commit
61b7cbdba2
1 changed files with 0 additions and 3 deletions
  1. 0 3
      mm/filemap.c

+ 0 - 3
mm/filemap.c

@@ -1004,9 +1004,6 @@ EXPORT_SYMBOL(grab_cache_page_nowait);
 static void shrink_readahead_size_eio(struct file *filp,
 static void shrink_readahead_size_eio(struct file *filp,
 					struct file_ra_state *ra)
 					struct file_ra_state *ra)
 {
 {
-	if (!ra->ra_pages)
-		return;
-
 	ra->ra_pages /= 4;
 	ra->ra_pages /= 4;
 }
 }