On Tue, Mar 10, 2026 at 1:53 AM Linus Walleij linusw@kernel.org wrote:
As of commit 62a9f5a85b98 "mm: introduce clear_pages() and clear_user_pages()" we can clear a range of pages with a potentially assembly-optimized call.
Instead of using a memset, use this helper to clear the whole range of pages from the CMA allocation.
Signed-off-by: Linus Walleij linusw@kernel.org
Reviewed-by: T.J. Mercier tjmercier@google.com