Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm, pagemap: remove SLOB and SLQB from comments and documentation

SLOB has been removed and SLQB never merged, so remove their mentions
from comments and documentation of pagemap.

In stable_page_flags() also correct an outdated comment mentioning that
PageBuddy() means a page->_refcount of -1, and remove compound_head()
from the PageSlab() call, as that's already implicitly there thanks to
PF_NO_TAIL.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Lorenzo Stoakes <lstoakes@gmail.com>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>

+7 -8
+3 -3
Documentation/admin-guide/mm/pagemap.rst
··· 91 91 The page is being locked for exclusive access, e.g. by undergoing read/write 92 92 IO. 93 93 7 - SLAB 94 - The page is managed by the SLAB/SLOB/SLUB/SLQB kernel memory allocator. 95 - When compound page is used, SLUB/SLQB will only set this flag on the head 96 - page; SLOB will not flag it at all. 94 + The page is managed by the SLAB/SLUB kernel memory allocator. 95 + When compound page is used, either will only set this flag on the head 96 + page. 97 97 10 - BUDDY 98 98 A free memory block managed by the buddy system allocator. 99 99 The buddy system organizes free memory in blocks of various orders.
+4 -5
fs/proc/page.c
··· 125 125 /* 126 126 * pseudo flags for the well known (anonymous) memory mapped pages 127 127 * 128 - * Note that page->_mapcount is overloaded in SLOB/SLUB/SLQB, so the 128 + * Note that page->_mapcount is overloaded in SLAB, so the 129 129 * simple test in page_mapped() is not enough. 130 130 */ 131 131 if (!PageSlab(page) && page_mapped(page)) ··· 165 165 166 166 167 167 /* 168 - * Caveats on high order pages: page->_refcount will only be set 169 - * -1 on the head page; SLUB/SLQB do the same for PG_slab; 170 - * SLOB won't set PG_slab at all on compound pages. 168 + * Caveats on high order pages: PG_buddy and PG_slab will only be set 169 + * on the head page. 171 170 */ 172 171 if (PageBuddy(page)) 173 172 u |= 1 << KPF_BUDDY; ··· 184 185 u |= kpf_copy_bit(k, KPF_LOCKED, PG_locked); 185 186 186 187 u |= kpf_copy_bit(k, KPF_SLAB, PG_slab); 187 - if (PageTail(page) && PageSlab(compound_head(page))) 188 + if (PageTail(page) && PageSlab(page)) 188 189 u |= 1 << KPF_SLAB; 189 190 190 191 u |= kpf_copy_bit(k, KPF_ERROR, PG_error);