]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
mm/swapfile.c: use list_for_each_entry_safe in free_swap_count_continuations
authorGeliang Tang <geliangtang@163.com>
Thu, 14 Jan 2016 23:21:49 +0000 (15:21 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Jan 2016 00:00:49 +0000 (16:00 -0800)
commit0d576d20ccdeffbb7ba28053107fa6f838b67f3a
treefe024b2dc63a6010d49a852c7f21e03268962ddb
parent0e41e277971799bad2764ad4e6284817e9a6da5b
mm/swapfile.c: use list_for_each_entry_safe in free_swap_count_continuations

Use list_for_each_entry_safe() instead of list_for_each_safe() to
simplify the code.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swapfile.c