mm, swap: add swap_cluster_list
authorHuang Ying <ying.huang@intel.com>
Sat, 10 Sep 2016 10:34:08 +0000 (20:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 10 Sep 2016 10:34:08 +0000 (20:34 +1000)
commitebfa65052c60e7120915c0b6528de4aba907bb21
tree78728d0461abb4e407a40914c9c074b2979dbebf
parent01bece1d695678cb53fea50485ee4960bf70b8cc
mm, swap: add swap_cluster_list

This is a code clean up patch without functionality changes.  The
swap_cluster_list data structure and its operations are introduced to
provide some better encapsulation for the free cluster and discard cluster
list operations.  This avoid some code duplication, improved the code
readability, and reduced the total line number.

Link: http://lkml.kernel.org/r/1472067356-16004-1-git-send-email-ying.huang@intel.com
Signed-off-by: "Huang, Ying" <ying.huang@intel.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: Tim Chen <tim.c.chen@intel.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Shaohua Li <shli@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/swap.h
mm/swapfile.c
This page took 0.026046 seconds and 5 git commands to generate.