]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b9a436b4e89f0b949ee3eb3d370af008e0c9921
tree79628e326fb516cf2e2a513b88781df7e1427e0e
parentbae61356133733aa246c168bbc58e6ab110115e4
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