Home
last modified time | relevance | path

Searched hist:"7714304 f3ba16af9cf52952d182d031d04b62d6d" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/mm/
H A Dslab_common.cdiff 7714304f3ba16af9cf52952d182d031d04b62d6d Mon Dec 14 21:03:47 CST 2020 Hui Su <sh_def@163.com> mm/slab_common.c: use list_for_each_entry in dump_unreclaimable_slab()

dump_unreclaimable_slab() acquires the slab_mutex first, and it won't
remove any slab_caches list entry when itering the slab_caches lists.

Thus we do not need list_for_each_entry_safe here, which is against
removal of list entry.

Link: https://lkml.kernel.org/r/20200926043440.GA180545@rlk
Signed-off-by: Hui Su <sh_def@163.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>