]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/page_reporting: use list_entry_is_head() in page_reporting_cycle()
authorsh_def@163.com <sh_def@163.com>
Thu, 31 Dec 2020 22:04:09 +0000 (22:04 +0000)
committerJohannes Weiner <hannes@cmpxchg.org>
Thu, 31 Dec 2020 22:04:09 +0000 (22:04 +0000)
commita168fae5c5d2d75b4d4df5133ac2ac9c09ffb81d
treed6de5b9b52c37a60c953ffa2c00ab32e9dbf676f
parent12aef5e8533d51d3f807f4246c07442784cd7655
mm/page_reporting: use list_entry_is_head() in page_reporting_cycle()

Replace '&next->lru != list' with list_entry_is_head().  No functional
change.

Link: https://lkml.kernel.org/r/20201222182735.GA1257912@ubuntu-A520I-AC
Signed-off-by: sh <sh_def@163.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_reporting.c