summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorHarry Yoo <harry.yoo@oracle.com>2026-01-13 15:18:38 +0900
committerVlastimil Babka <vbabka@suse.cz>2026-02-04 10:05:35 +0100
commita13b68d79d5caa5ec0d34b4c0fb2dedf3259fc32 (patch)
treebd6e49cb72b4e644a6e49487baacadd2557f2760 /fs
parentb85f369b81aed457acbea4ad3314218254a72fd2 (diff)
mm/slab: allow specifying free pointer offset when using constructor
When a slab cache has a constructor, the free pointer is placed after the object because certain fields must not be overwritten even after the object is freed. However, some fields that the constructor does not initialize can safely be overwritten after free. Allow specifying the free pointer offset within the object, reducing the overall object size when some fields can be reused for the free pointer. Adjust the document accordingly. Signed-off-by: Harry Yoo <harry.yoo@oracle.com> Link: https://patch.msgid.link/20260113061845.159790-3-harry.yoo@oracle.com Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions