From: Wu Fengguang Date: Tue, 16 Jun 2009 22:31:36 +0000 (-0700) Subject: readahead: remove redundant test in shrink_readahead_size_eio() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=61b7cbdba2f3c588a0cf3db574c562805454b09b;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git readahead: remove redundant test in shrink_readahead_size_eio() Signed-off-by: Wu Fengguang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/filemap.c b/mm/filemap.c index 734891d0663..2e9bcc2e797 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; }