mm: remove checks for pte_index
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sat, 19 Aug 2023 03:18:37 +0000 (04:18 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 24 Aug 2023 23:20:29 +0000 (16:20 -0700)
commitbb7dbaafff3f582d18028a5b99a8faa789842678
tree753149b5f230ae2474fcfd95784ec65b205802e5
parent14a405c3a933ce261147a60dfb8bf586b45ec9de
mm: remove checks for pte_index

Since pte_index is always defined, we don't need to check whether it's
defined or not.  Delete the slow version that doesn't depend on it and
remove the #define since nobody needs to test for it.

Link: https://lkml.kernel.org/r/20230819031837.3160096-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Christian Dietrich <stettberger@dokucode.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/pgtable.h
mm/memory.c