aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorChengming Zhou <[email protected]>2023-11-02 03:23:30 +0000
committerVlastimil Babka <[email protected]>2023-12-05 09:38:27 +0000
commit31bda717d7777b8b6cf542af2730651ad6bb4839 (patch)
tree4dc5dece86d2ba5fbb4899ad0c9f4cdc5d8a24ed /mm/hugetlb.c
parentslub: Rename all *unfreeze_partials* functions to *put_partials* (diff)
downloadkernel-31bda717d7777b8b6cf542af2730651ad6bb4839.tar.gz
kernel-31bda717d7777b8b6cf542af2730651ad6bb4839.zip
slub: Update frozen slabs documentations in the source
The current updated scheme (which this series implemented) is: - node partial slabs: PG_Workingset && !frozen - cpu partial slabs: !PG_Workingset && !frozen - cpu slabs: !PG_Workingset && frozen - full slabs: !PG_Workingset && !frozen The most important change is that "frozen" bit is not set for the cpu partial slabs anymore, __slab_free() will grab node list_lock then check by !PG_Workingset that it's not on a node partial list. And the "frozen" bit is still kept for the cpu slabs for performance, since we don't need to grab node list_lock to check whether the PG_Workingset is set or not if the "frozen" bit is set in __slab_free(). Update related documentations and comments in the source. Signed-off-by: Chengming Zhou <[email protected]> Tested-by: Hyeonggon Yoo <[email protected]> Reviewed-by: Hyeonggon Yoo <[email protected]> Acked-by: Christoph Lameter (Ampere) <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions