]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_reporting.c: drop stale list head check in page_reporting_cycle
authorWei Yang <richard.weiyang@linux.alibaba.com>
Fri, 16 Oct 2020 03:09:49 +0000 (20:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Oct 2020 18:11:18 +0000 (11:11 -0700)
commitd92e3e487c636c176a239b830f67732c2670c9f2
treec156af09d2d8ffcd4357cb34af7ec929a3128461
parent74a7348f878069884a81477a5d5514be8a51d979
mm/page_reporting.c: drop stale list head check in page_reporting_cycle

list_for_each_entry_safe() guarantees that we will never stumble over the
list head; "&page->lru != list" will always evaluate to true.  Let's
simplify.

[david@redhat.com: Changelog refinements]

Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Link: http://lkml.kernel.org/r/20200818084448.33969-1-richard.weiyang@linux.alibaba.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_reporting.c