1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-12 01:20:14 +00:00
Matthew Wilcox (Oracle) ee1ee8abc4 slab: Remove folio references from __ksize()
In the future, we will separate slab, folio and page from each other
and calling virt_to_folio() on an address allocated from slab will
return NULL.  Delay the conversion from struct page to struct slab
until we know we're not dealing with a large kmalloc allocation.
There's a minor win for large kmalloc allocations as we avoid the
compound_head() hidden in virt_to_folio().

This deprecates calling ksize() on memory allocated by alloc_pages().
Today it becomes a warning and support will be removed entirely in
the future.

Introduce large_kmalloc_size() to abstract how we represent the size
of a large kmalloc allocation.  For now, this is the same as
page_size(), but it will change with separately allocated memdescs.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://patch.msgid.link/20251113000932.1589073-3-willy@infradead.org
Acked-by: David Hildenbrand (Red Hat) <david@kernel.org>
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
2025-11-13 11:01:08 +01:00
..
2025-09-24 17:09:47 +02:00
2025-10-01 17:32:51 -07:00
2025-10-02 15:17:01 -07:00
2025-10-03 17:23:18 +02:00
2025-10-06 10:41:03 -07:00
2025-10-08 09:44:38 -07:00
2025-10-02 18:44:54 -07:00
2025-10-02 15:17:01 -07:00
2025-10-06 13:22:21 -07:00
2025-10-04 16:07:08 -07:00
2025-09-05 15:06:03 +02:00
2025-09-10 05:23:45 -06:00
2025-10-10 10:37:13 -07:00
2025-09-24 02:48:05 -07:00
2025-09-29 11:20:29 -07:00
2025-09-30 17:58:11 -07:00
2025-09-29 17:48:27 -07:00
2025-09-23 11:13:22 +02:00
2025-10-03 10:51:44 -07:00
2025-10-06 13:22:21 -07:00
2025-09-13 17:32:44 -07:00
2025-10-02 09:56:23 -07:00
2025-09-29 11:20:29 -07:00
2025-09-18 10:17:09 +02:00
2025-09-23 11:13:22 +02:00
2025-10-18 10:25:43 +02:00
2025-10-04 11:28:45 -07:00
2025-09-13 16:54:50 -07:00
2025-09-29 11:20:29 -07:00
2025-09-17 15:58:29 -04:00
2025-09-30 16:00:29 -07:00
2025-10-03 16:32:36 -07:00
2025-09-23 13:28:20 -04:00
2025-10-06 13:22:21 -07:00
2025-09-19 14:26:16 +02:00
2025-09-29 11:20:29 -07:00
2025-09-25 09:23:47 +02:00
2025-10-01 07:55:42 -05:00
2025-10-03 14:20:40 -07:00
2025-10-03 12:13:12 -05:00
2025-09-13 16:55:07 -07:00
2025-10-03 10:24:14 -07:00
2025-09-29 11:20:29 -07:00
2025-10-01 15:11:00 -07:00
2025-10-07 08:40:15 -07:00
2025-09-30 15:06:33 -07:00
2025-09-30 10:35:11 -07:00
2025-09-19 17:19:45 -07:00
2025-10-01 11:34:12 -07:00
2025-09-29 11:20:29 -07:00
2025-09-09 10:27:01 -06:00
2025-09-29 11:20:29 -07:00
2025-10-01 07:24:55 -04:00