]> git.baikalelectronics.ru Git - kernel.git/commit
mm/swapfile.c: use helper function swap_count() in add_swap_count_continuation()
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 15 Dec 2020 03:05:58 +0000 (19:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2020 20:13:39 +0000 (12:13 -0800)
commitc3af2ce566219ed62c752de93fad4592f94f942c
tree28687f7cee3ec27a8d74306d2c4e02341748c03f
parent8757c93611b221047fd2dd40eb46e6e3d7c770e3
mm/swapfile.c: use helper function swap_count() in add_swap_count_continuation()

Commit 069e1a20af92 ("swap_info: swap count continuations") introduced the
func add_swap_count_continuation() but forgot to use the helper function
swap_count() introduced by commit 0a5f43ac2756 ("mm: modify swap_map and
add SWAP_HAS_CACHE flag").

Link: https://lkml.kernel.org/r/20201009134306.18033-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swapfile.c