Re: [PATCH] docs: pagemap: fix flags location, member name and sample code

From: SeongJae Park

Date: Thu Jun 25 2026 - 20:05:16 EST


On Fri, 26 Jun 2026 01:44:47 +0800 Zenghui Yu <zenghui.yu@xxxxxxxxx> wrote:

> The userland visible page flags (KPF_*) were initially moved to
> include/linux/kernel-page-flags.h in commit 1a9b5b7fe0c5 ("mm: export
> stable page flags"), and later moved to
> include/uapi/linux/kernel-page-flags.h in commit 607ca46e97a1 ("UAPI:
> (Scripted) Disintegrate include/linux"). Upadte the doc to reflect the
> current location of these flags.
>
> The member @walk_end of struct pm_scan_arg {} was wrongly written as
> "end_walk".
>
> The first sample code of the PAGEMAP_SCAN ioctl wrongly used the
> PM_SCAN_CHECK_WPASYNC flag twice, instead of the PM_SCAN_WP_MATCHING flag.
> The second one missed PAGE_IS_FILE in the required mask.
>
> Fix them all together.

Looks good to me, thank you!

>
> Signed-off-by: Zenghui Yu <zenghui.yu@xxxxxxxxx>

Reviewed-by: SeongJae Park <sj@xxxxxxxxxx>


Thanks,
SJ

[...]