mm: Use struct slab in kmem_obj_info()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 4 Oct 2021 13:45:55 +0000 (14:45 +0100)
committerVlastimil Babka <vbabka@suse.cz>
Thu, 6 Jan 2022 11:25:51 +0000 (12:25 +0100)
commit7213230af5e1e83ff010b3448260b9d3f95dd036
tree79628e326fb516cf2e2a513b88781df7e1427e0e
parent0c24811b12ba29a6881e8ec0d01ad3f3b091da02
mm: Use struct slab in kmem_obj_info()

All three implementations of slab support kmem_obj_info() which reports
details of an object allocated from the slab allocator.  By using the
slab type instead of the page type, we make it obvious that this can
only be called for slabs.

[ vbabka@suse.cz: also convert the related kmem_valid_obj() to folios ]

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Roman Gushchin <guro@fb.com>
mm/slab.c
mm/slab.h
mm/slab_common.c
mm/slob.c
mm/slub.c