[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20090414013730.GA8951@localhost>
Date: Tue, 14 Apr 2009 09:37:30 +0800
From: Wu Fengguang <fengguang.wu@...el.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] readahead: remove redundant test in
shrink_readahead_size_eio()
Signed-off-by: Wu Fengguang <fengguang.wu@...el.com>
---
mm/filemap.c | 3 ---
1 file changed, 3 deletions(-)
--- mm.orig/mm/filemap.c
+++ mm/mm/filemap.c
@@ -1072,9 +1072,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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists