summaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorMinchan Kim2018-04-06 01:23:39 +0200
committerLinus Torvalds2018-04-06 06:36:25 +0200
commiteaf649ebc3acfbb235ce31cebd06e4876d05758e (patch)
tree68225a29f76c5f4d78c628c405af7ba37ad75f31 /mm/shmem.c
parentmm,vmscan: don't pretend forward progress upon shrinker_rwsem contention (diff)
downloadkernel-qcow2-linux-eaf649ebc3acfbb235ce31cebd06e4876d05758e.tar.gz
kernel-qcow2-linux-eaf649ebc3acfbb235ce31cebd06e4876d05758e.tar.xz
kernel-qcow2-linux-eaf649ebc3acfbb235ce31cebd06e4876d05758e.zip
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. [minchan@kernel.org: do not check readahead flag with THP anon] Link: http://lkml.kernel.org/r/874lm83zho.fsf@yhuang-dev.intel.com Link: http://lkml.kernel.org/r/20180227232611.169883-1-minchan@kernel.org Link: http://lkml.kernel.org/r/1509520520-32367-2-git-send-email-minchan@kernel.org Link: http://lkml.kernel.org/r/20180220085249.151400-2-minchan@kernel.org Signed-off-by: Minchan Kim <minchan@kernel.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Hugh Dickins <hughd@google.com> Cc: Huang Ying <ying.huang@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions