]> git.baikalelectronics.ru Git - kernel.git/commit
mm/slob: Remove unnecessary page_mapcount_reset() function call
authorHyeonggon Yoo <42.hyeyoo@gmail.com>
Sun, 12 Dec 2021 06:52:41 +0000 (06:52 +0000)
committerVlastimil Babka <vbabka@suse.cz>
Thu, 6 Jan 2022 11:27:28 +0000 (12:27 +0100)
commit1aac30fcfebf6b31cebca849f9eae8bd949dfd50
tree0ca12daa8bfedb0f814c63a647aac4a0498a74e9
parent9887c689b91796e72c9b98f7ba277f382d0f2d5b
mm/slob: Remove unnecessary page_mapcount_reset() function call

After commit 5f43fc18e1e8 ("mm/sl*b: Differentiate struct slab fields by
sl*b implementations"), we can reorder fields of struct slab depending
on slab allocator.

For now, page_mapcount_reset() is called because page->_mapcount and
slab->units have same offset. But this is not necessary for struct slab.
Use unused field for units instead.

Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Link: https://lore.kernel.org/r/20211212065241.GA886691@odroid
mm/slab.h
mm/slob.c