diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-04-07 18:37:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-07 19:35:58 -0400 |
commit | 29f175d125f0f3a9503af8a5596f93d714cceb08 (patch) | |
tree | 442694afa182a6da0549ad00942047482df6bd7f /include/linux/mm.h | |
parent | 55f67141a8927b2be3e51840da37b8a2320143ed (diff) |
mm/readahead.c: inline ra_submit
Commit f9acc8c7b35a ("readahead: sanify file_ra_state names") left
ra_submit with a single function call.
Move ra_submit to internal.h and inline it to save some stack. Thanks
to Andrew Morton for commenting different versions.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r-- | include/linux/mm.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h index 9132faed1a41..6edcea720ddd 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1875,9 +1875,6 @@ void page_cache_async_readahead(struct address_space *mapping, | |||
1875 | unsigned long size); | 1875 | unsigned long size); |
1876 | 1876 | ||
1877 | unsigned long max_sane_readahead(unsigned long nr); | 1877 | unsigned long max_sane_readahead(unsigned long nr); |
1878 | unsigned long ra_submit(struct file_ra_state *ra, | ||
1879 | struct address_space *mapping, | ||
1880 | struct file *filp); | ||
1881 | 1878 | ||
1882 | /* Generic expand stack which grows the stack according to GROWS{UP,DOWN} */ | 1879 | /* Generic expand stack which grows the stack according to GROWS{UP,DOWN} */ |
1883 | extern int expand_stack(struct vm_area_struct *vma, unsigned long address); | 1880 | extern int expand_stack(struct vm_area_struct *vma, unsigned long address); |