]> 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)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 3 Aug 2022 18:17:13 +0000 (14:17 -0400)
commitf2b3a2bb79f38d53a8eb9453758daf85abe5f752
treec3e1d9b1b075f10171feffeda383727179354ac6
parent1b2a3a5adae95e8e60379811c1c8411e6d0a40c2
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