Re: [PATCH 1/1] mm: page_cache_add_speculative(): refactor out some code duplication

2019-02-07 Thread Andrew Morton
On Wed, 6 Feb 2019 15:10:16 -0800 john.hubb...@gmail.com wrote: > From: John Hubbard > > This combines the common elements of these routines: > > page_cache_get_speculative() > page_cache_add_speculative() > > This was anticipated by the original author, as shown by the comment > in c

[PATCH 1/1] mm: page_cache_add_speculative(): refactor out some code duplication

2019-02-06 Thread john . hubbard
From: John Hubbard This combines the common elements of these routines: page_cache_get_speculative() page_cache_add_speculative() This was anticipated by the original author, as shown by the comment in commit ce0ad7f095258 ("powerpc/mm: Lockless get_user_pages_fast() for 64-bit (v3)"):