Thread (85 messages) 85 messages, 9 authors, 2024-11-05

Re: [PATCH v2 07/33] mm: Convert __ksize() to struct slab

From: Johannes Weiner <hannes@cmpxchg.org>
Date: 2021-12-14 14:28:42
Also in: linux-patches

On Wed, Dec 01, 2021 at 07:14:44PM +0100, Vlastimil Babka wrote:
From: "Matthew Wilcox (Oracle)" <willy@infradead.org>

In SLUB, use folios, and struct slab to access slab_cache field.
In SLOB, use folios to properly resolve pointers beyond
PAGE_SIZE offset of the object.

[ vbabka@suse.cz: use folios, and only convert folio_test_slab() == true folios
  to struct slab ]

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Vlastimil Babka <redacted>
Awesome.

Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help