]> Git Repo - linux.git/commit
mm: swap: clean up swap readahead
authorMinchan Kim <[email protected]>
Thu, 5 Apr 2018 23:23:39 +0000 (16:23 -0700)
committerLinus Torvalds <[email protected]>
Fri, 6 Apr 2018 04:36:25 +0000 (21:36 -0700)
commiteaf649ebc3acfbb235ce31cebd06e4876d05758e
tree68225a29f76c5f4d78c628c405af7ba37ad75f31
parente830c63a621e20894a663351b968706bd0efbbd0
mm: swap: clean up swap readahead

When I see recent change of swap readahead, I am very unhappy about
current code structure which diverges two swap readahead algorithm in
do_swap_page.  This patch is to clean it up.

Main motivation is that fault handler doesn't need to be aware of
readahead algorithms but just should call swapin_readahead.

As first step, this patch cleans up a little bit but not perfect (I just
separate for review easier) so next patch will make the goal complete.

[[email protected]: do not check readahead flag with THP anon]
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Minchan Kim <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Huang Ying <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/swap.h
mm/memory.c
mm/swap_state.c
This page took 0.05683 seconds and 4 git commands to generate.