diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2013-11-12 18:07:09 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-12 22:09:02 -0500 |
commit | 63d0f0a3c7e1281fd79268a8d988167eff607fb6 (patch) | |
tree | ce153ddd335bfab61be933b136d83696e9ed9617 /mm | |
parent | 41ecc345984bcc8bf341a3e758c1eb3fc543dd83 (diff) |
mm/readahead.c:do_readhead(): don't check for ->readpage
The callee force_page_cache_readahead() already does this and unlike
do_readahead(), force_page_cache_readahead() remembers to check for
->readpages() as well.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/readahead.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/readahead.c b/mm/readahead.c index e4ed04149785..50241836fe82 100644 --- a/mm/readahead.c +++ b/mm/readahead.c | |||
@@ -569,7 +569,7 @@ static ssize_t | |||
569 | do_readahead(struct address_space *mapping, struct file *filp, | 569 | do_readahead(struct address_space *mapping, struct file *filp, |
570 | pgoff_t index, unsigned long nr) | 570 | pgoff_t index, unsigned long nr) |
571 | { | 571 | { |
572 | if (!mapping || !mapping->a_ops || !mapping->a_ops->readpage) | 572 | if (!mapping || !mapping->a_ops) |
573 | return -EINVAL; | 573 | return -EINVAL; |
574 | 574 | ||
575 | force_page_cache_readahead(mapping, filp, index, nr); | 575 | force_page_cache_readahead(mapping, filp, index, nr); |