[PATCH 0/2] mm: Explicitly check & doc fragsz limit

From: Haiyang Zhang
Date: Thu Apr 03 2025 - 17:26:39 EST


The page frag allocator is not designed for fragsz > PAGE_SIZE.
Explicitly check it in the function & document the fragsz limit.

Haiyang Zhang (2):
mm: page_frag: Check fragsz at the beginning of __page_frag_alloc_align()
docs/mm: Specify page frag size is not bigger than PAGE_SIZE

Documentation/mm/page_frags.rst | 2 +-
mm/page_frag_cache.c | 22 +++++++++-------------
2 files changed, 10 insertions(+), 14 deletions(-)

--
2.34.1