Peter Xu 4781593d5d mm/hugetlb: unify clearing of RestoreReserve for private pages
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.

Link: https://lkml.kernel.org/r/20221020193832.776173-1-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-11-08 17:37:19 -08:00
..
2022-09-26 19:46:26 -07:00
2022-11-08 17:37:18 -08:00
2022-09-26 19:46:16 -07:00
2022-03-23 18:03:08 -07:00
2022-10-03 14:03:04 -07:00
2022-06-16 19:48:30 -07:00
2022-11-08 17:37:12 -08:00
2022-10-03 14:02:43 -07:00
2022-09-26 19:46:09 -07:00
2022-11-08 17:37:19 -08:00
2022-09-26 19:46:28 -07:00
2022-09-26 19:46:26 -07:00
2022-01-15 16:30:31 +02:00