]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: remove unneeded PageAnon check in restore_exclusive_pte()
authorMiaohe Lin <linmiaohe@huawei.com>
Sat, 16 Jul 2022 08:18:16 +0000 (16:18 +0800)
committerakpm <akpm@linux-foundation.org>
Wed, 20 Jul 2022 21:41:54 +0000 (14:41 -0700)
commit598a6bbb7031a53c62d6a7c9f5f2eb3d0252c5a6
treefc4a72131712db1efe46f951bc53ab4f705d8422
parent5e36c0319775c391f9a088793e6e39aad98e5589
mm: remove unneeded PageAnon check in restore_exclusive_pte()

When code reaches here, the page must be !PageAnon.  There's no need to
check PageAnon again.  Remove it.

Link: https://lkml.kernel.org/r/20220716081816.10752-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory.c