mm: Add PAGE_ALIGN_DOWN macro
authorDavid Gow <davidgow@google.com>
Fri, 1 Jul 2022 09:16:19 +0000 (17:16 +0800)
committerRichard Weinberger <richard@nod.at>
Sun, 17 Jul 2022 21:35:02 +0000 (23:35 +0200)
commit335e52c28cf9954d65b819cb68912fd32de3c844
tree6e3592ebe64ca9a2ea4274e472e5f417416013eb
parent9e70cbd11b03889c92462cf52edb2bd023c798fa
mm: Add PAGE_ALIGN_DOWN macro

This is just the same as PAGE_ALIGN(), but rounds the address down, not
up.

Suggested-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: David Gow <davidgow@google.com>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
include/linux/mm.h