Re: [PATCH 1/3] mm: move offset_in_page() to page_helpers.h

From: Andy Shevchenko

Date: Mon May 18 2026 - 02:52:33 EST


On Sun, May 17, 2026 at 02:34:29PM +0200, Thorsten Blum wrote:
> Move offset_in_page() out of linux/mm.h so users that only need page
> offset calculations can include this lightweight header instead of
> pulling in all of linux/mm.h.

Yep, the whole mm.h is rarely used in the cases where this and a new one
(next patch) are being (going to be) used.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>

(Do we need to update MAINTAINERS / Documentation parts anywhere?)

--
With Best Regards,
Andy Shevchenko