]> git.baikalelectronics.ru Git - kernel.git/commit
mm/swapfile: remove page_swapcount()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 2 Sep 2022 19:46:05 +0000 (20:46 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:02:46 +0000 (14:02 -0700)
commit0e3403479906018dfc5f79e326f933b53b729694
treeea3be38d215f5f82f06d11a1fba8c25d2d0ef8bd
parent2bb15d77f0f0a924035adb75cf312527492c9797
mm/swapfile: remove page_swapcount()

By restructuring folio_swapped(), it can use swap_swapcount() instead of
page_swapcount().  It's even a little more efficient.

Link: https://lkml.kernel.org/r/20220902194653.1739778-10-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swapfile.c