diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2022-06-18 17:05:27 +0800 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-07-03 18:08:49 -0700 |
commit | f7cc67ae7f6221abe57857bd6efd21e06a05bd45 (patch) | |
tree | 52b064e4335bdd2d112c3c11a326f5c5c1a69577 /mm/rmap.c | |
parent | dc2628f39582e79bce41842fc91235b70054838c (diff) |
mm/madvise: minor cleanup for swapin_walk_pmd_entry()
Passing index to pte_offset_map_lock() directly so the below calculation
can be avoided. Rename orig_pte to ptep as it's not changed. Also use
helper is_swap_pte() to improve the readability. No functional change
intended.
[akpm@linux-foundation.org: reduce scope of `ptep']
Link: https://lkml.kernel.org/r/20220618090527.37843-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/rmap.c')
0 files changed, 0 insertions, 0 deletions