diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2022-05-17 22:51:20 +0800 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-05-19 14:08:55 -0700 |
commit | 02e34fff195d3a5f67cbb553795dc109a37d1dcf (patch) | |
tree | 1405b158ce6e8f338ee75aac6d8c7308f6373e3a /mm/damon/vaddr.c | |
parent | 2b132903de7124dd9a758be0c27562e91a510848 (diff) |
mm: damon: use HPAGE_PMD_SIZE
Use HPAGE_PMD_SIZE instead of open coding.
Link: https://lkml.kernel.org/r/20220517145120.118523-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/damon/vaddr.c')
-rw-r--r-- | mm/damon/vaddr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/damon/vaddr.c b/mm/damon/vaddr.c index 77f326323e74..59e1653799f8 100644 --- a/mm/damon/vaddr.c +++ b/mm/damon/vaddr.c @@ -442,7 +442,7 @@ static int damon_young_pmd_entry(pmd_t *pmd, unsigned long addr, if (pmd_young(*pmd) || !page_is_idle(page) || mmu_notifier_test_young(walk->mm, addr)) { - *priv->page_sz = ((1UL) << HPAGE_PMD_SHIFT); + *priv->page_sz = HPAGE_PMD_SIZE; priv->young = true; } put_page(page); |