Files
linux/include/linux
Christophe Leroy 18d095b255 mm: define __pte_leaf_size() to also take a PMD entry
On powerpc 8xx, when a page is 8M size, the information is in the PMD
entry.  So allow architectures to provide __pte_leaf_size() instead of
pte_leaf_size() and provide the PMD entry to that function.

When __pte_leaf_size() is not defined, define it as a pte_leaf_size() so
that architectures not interested in the PMD arguments are not impacted.

Only define a default pte_leaf_size() when __pte_leaf_size() is not
defined to make sure nobody adds new calls to pte_leaf_size() in the core.

Link: https://lkml.kernel.org/r/c7c008f0a314bf8029ad7288fdc908db1ec7e449.1719928057.git.christophe.leroy@csgroup.eu
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2024-07-12 15:52:15 -07:00
..
2024-03-07 21:52:03 +00:00
2024-03-19 16:11:42 +01:00
2023-10-24 13:08:14 -07:00
2024-01-18 15:21:00 -08:00
2024-04-24 11:06:26 -07:00
2024-04-25 20:55:49 -07:00
2024-06-18 14:48:27 +01:00
2023-12-20 19:26:32 -05:00
2024-05-02 20:35:57 +02:00
2023-10-11 08:46:01 -07:00
2024-04-17 08:44:03 -06:00
2024-03-11 15:37:23 -07:00
2024-07-10 12:14:54 -07:00
2024-04-29 16:28:07 -07:00
2024-07-03 19:29:59 -07:00
2023-12-02 22:24:36 +00:00
2023-12-15 16:25:55 -08:00
2024-06-24 18:29:20 +02:00
2024-04-23 09:03:37 +09:00
2024-03-07 20:37:04 +00:00
2024-02-20 14:22:55 -05:00
2024-02-20 14:22:51 -05:00
2024-03-12 23:08:29 -07:00
2024-05-11 00:41:15 +00:00
2024-04-15 16:03:24 -04:00
2024-05-09 13:02:39 +02:00
2024-05-19 14:36:17 -07:00
2024-07-03 19:29:52 -07:00
2024-04-23 13:16:03 +02:00
2024-06-21 13:33:17 +02:00
2024-02-28 19:36:39 -08:00
2024-03-10 14:38:04 -07:00
2024-02-14 11:14:40 +01:00
2023-12-20 19:26:31 -05:00
2023-12-20 19:26:31 -05:00
2023-10-11 10:11:54 -07:00
2024-07-03 19:30:23 -07:00
2024-02-17 16:20:41 +01:00
2024-06-05 19:19:26 -07:00
2023-10-18 14:43:21 -07:00
2023-10-04 10:41:57 -07:00
2023-12-20 19:26:30 -05:00
2024-05-03 10:44:42 +01:00
2024-07-10 12:14:54 -07:00
2023-10-16 12:44:06 -04:00
2023-10-16 12:44:06 -04:00
2023-10-18 10:01:33 +02:00
2024-07-10 12:14:54 -07:00
2024-03-09 09:14:50 -05:00
2023-12-20 19:26:30 -05:00
2024-03-26 11:07:20 -07:00
2023-12-20 19:26:31 -05:00
2024-03-13 12:53:53 -07:00
2024-03-13 12:53:53 -07:00
2023-12-20 19:26:31 -05:00
2023-12-20 19:26:31 -05:00
2023-12-20 19:26:30 -05:00
2023-12-27 11:49:56 -05:00
2023-10-06 11:01:23 +02:00
2024-04-15 19:43:48 +02:00
2023-12-20 19:26:32 -05:00
2024-04-02 18:03:32 -07:00
2023-12-27 11:49:56 -05:00
2023-12-20 19:26:31 -05:00
2024-03-08 12:05:10 +01:00
2024-04-03 09:59:38 +01:00
2024-07-10 12:14:54 -07:00
2023-12-20 19:26:32 -05:00
2023-12-20 19:26:32 -05:00
2023-12-20 19:26:32 -05:00
2024-02-15 12:17:28 -05:00
2024-05-02 16:28:15 +02:00
2024-03-03 15:06:58 -08:00
2024-04-09 10:53:44 +02:00
2024-07-10 12:14:54 -07:00
2024-03-26 09:01:18 +01:00
2024-05-04 18:57:21 +02:00
2023-10-18 14:43:21 -07:00
2024-02-20 13:36:34 +01:00
2024-04-08 11:49:02 +01:00
2023-12-20 19:26:31 -05:00
2023-12-08 12:02:37 +01:00
2024-05-06 12:05:00 +02:00
2023-12-20 19:26:30 -05:00
2024-04-07 02:42:36 -04:00
2024-02-09 12:07:48 +00:00
2024-04-25 20:55:48 -07:00