diff options
author | Dmitry Safonov | 2015-09-09 00:05:00 +0200 |
---|---|---|
committer | Linus Torvalds | 2015-09-09 00:35:28 +0200 |
commit | 5b999aadbae65696a148f55250d94b6f3d74071e (patch) | |
tree | 3148d29e63658131dd762df51403bdba5bc77502 /mm/slab.h | |
parent | zram: unify error reporting (diff) | |
download | kernel-qcow2-linux-5b999aadbae65696a148f55250d94b6f3d74071e.tar.gz kernel-qcow2-linux-5b999aadbae65696a148f55250d94b6f3d74071e.tar.xz kernel-qcow2-linux-5b999aadbae65696a148f55250d94b6f3d74071e.zip |
mm: swap: zswap: maybe_preload & refactoring
zswap_get_swap_cache_page and read_swap_cache_async have pretty much the
same code with only significant difference in return value and usage of
swap_readpage.
I a helper __read_swap_cache_async() with the common code. Behavior
change: now zswap_get_swap_cache_page will use radix_tree_maybe_preload
instead radix_tree_preload. Looks like, this wasn't changed only by the
reason of code duplication.
Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vladimir Davydov <vdavydov@parallels.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Hugh Dickins <hughd@google.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Jens Axboe <axboe@fb.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: David Herrmann <dh.herrmann@gmail.com>
Cc: Seth Jennings <sjennings@variantweb.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab.h')
0 files changed, 0 insertions, 0 deletions