summaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorVitaly Wool <vitalywool@gmail.com>2019-09-24 00:39:43 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2019-09-25 00:54:12 +0200
commit068619e32ff6229a09407d267e36ea7710b96ea1 (patch)
treeea940e56669826675ee347d6b2e11c298044e5e7 /mm/filemap.c
parentzswap: use movable memory if zpool support allocate movable memory (diff)
downloadlinux-068619e32ff6229a09407d267e36ea7710b96ea1.tar.xz
linux-068619e32ff6229a09407d267e36ea7710b96ea1.zip
zswap: do not map same object twice
zswap_writeback_entry() maps a handle to read swpentry first, and then in the most common case it would map the same handle again. This is ok when zbud is the backend since its mapping callback is plain and simple, but it slows things down for z3fold. Since there's hardly a point in unmapping a handle _that_ fast as zswap_writeback_entry() does when it reads swpentry, the suggestion is to keep the handle mapped till the end. Link: http://lkml.kernel.org/r/20190916004640.b453167d3556c4093af4cf7d@gmail.com Signed-off-by: Vitaly Wool <vitalywool@gmail.com> Reviewed-by: Dan Streetman <ddstreet@ieee.org> Cc: Shakeel Butt <shakeelb@google.com> Cc: Minchan Kim <minchan@kernel.org> Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> Cc: Seth Jennings <sjenning@redhat.com> Cc: Vitaly Wool <vitalywool@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions