Re: [PATCH] mm/hugetlb: Unify clearing of RestoreReserve for private pages
From: Mike Kravetz
Date: Mon Oct 24 2022 - 18:30:25 EST
On 10/20/22 15:38, Peter Xu wrote:
> A trivial cleanup to move clearing of RestoreReserve into adding anon rmap
> of private hugetlb mappings. It matches with the shared mappings where we
> only clear the bit when adding into page cache, rather than spreading it
> around the code paths.
>
> Cc: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
> Signed-off-by: Peter Xu <peterx@xxxxxxxxxx>
> ---
> mm/hugetlb.c | 14 ++++----------
> mm/rmap.c | 2 +-
> 2 files changed, 5 insertions(+), 11 deletions(-)
Thanks Peter!
Reviewed-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
--
Mike Kravetz