diff options
author | Huang Ying <ying.huang@intel.com> | 2016-10-08 01:58:42 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-08 03:46:27 +0200 |
commit | 6b53491598a4d9694318e6e2b11d8c9988a483d4 (patch) | |
tree | ebd2d2b33b1a88c41976dcaee5de177cb379a5f7 /mm/oom_kill.c | |
parent | mm: unrig VMA cache hit ratio (diff) | |
download | linux-6b53491598a4d9694318e6e2b11d8c9988a483d4.tar.xz linux-6b53491598a4d9694318e6e2b11d8c9988a483d4.zip |
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.
[akpm@linux-foundation.org: coding-style fixes]
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions