mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
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>
This commit is contained in:
parent
10be0b372c
commit
61b7cbdba2
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue