Andrew Bresticker
ab1ffc86cb
mm/memory: don't require head page for do_set_pmd()
...
The requirement that the head page be passed to do_set_pmd() was added in
commit ef37b2ea08ac ("mm/memory: page_add_file_rmap() ->
folio_add_file_rmap_[pte|pmd]()") and prevents pmd-mapping in the
finish_fault() and filemap_map_pages() paths if the page to be inserted is
anything but the head page for an otherwise suitable vma and pmd-sized
page.
Matthew said:
: We're going to stop using PMDs to map large folios unless the fault is
: within the first 4KiB of the PMD. No idea how many workloads that
: affects, but it only needs to be backported as far as v6.8, so we may
: as well backport it.
Link: https://lkml.kernel.org/r/20240611153216.2794513-1-abrestic@rivosinc.com
Fixes: ef37b2ea08ac ("mm/memory: page_add_file_rmap() -> folio_add_file_rmap_[pte|pmd]()")
Signed-off-by: Andrew Bresticker <abrestic@rivosinc.com>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2024-06-24 20:52:11 -07:00
..
2024-05-11 15:41:36 -07:00
2024-06-24 20:52:09 -07:00
2024-04-25 20:55:51 -07:00
2024-06-05 19:19:25 -07:00
2024-05-05 17:53:51 -07:00
2022-08-02 12:34:03 -04:00
2023-10-25 16:47:13 -07:00
2022-09-11 20:25:50 -07:00
2024-02-22 10:24:57 -08:00
2024-04-25 20:56:42 -07:00
2024-02-22 10:24:57 -08:00
2024-06-24 20:52:09 -07:00
2024-04-25 20:56:04 -07:00
2024-06-15 10:43:08 -07:00
2024-05-05 17:53:31 -07:00
2023-04-05 19:42:38 -07:00
2023-12-05 11:17:58 +01:00
2023-06-09 16:25:56 -07:00
2024-05-14 00:31:43 -07:00
2023-06-23 16:59:31 -07:00
2023-06-09 16:25:23 -07:00
2022-11-22 18:50:44 -08:00
2024-06-05 19:19:26 -07:00
2024-04-25 20:56:25 -07:00
2023-06-23 16:58:19 -07:00
2022-11-08 17:37:15 -08:00
2024-05-07 10:37:01 -07:00
2023-12-29 12:22:28 -08:00
2024-04-25 20:55:46 -07:00
2024-06-15 10:43:06 -07:00
2024-05-05 17:53:41 -07:00
2024-04-25 20:56:32 -07:00
2023-10-25 16:47:14 -07:00
2024-06-05 19:19:26 -07:00
2024-05-05 17:53:45 -07:00
2023-12-12 10:11:32 +01:00
2024-06-24 20:52:09 -07:00
2023-08-18 10:12:36 -07:00
2024-05-19 09:21:03 -07:00
2024-01-22 10:31:08 +01:00
2024-05-05 17:53:53 -07:00
2024-05-19 14:40:44 -07:00
2024-06-05 19:19:26 -07:00
2024-02-22 10:24:54 -08:00
2023-04-12 17:36:23 -07:00
2024-05-23 19:40:26 -07:00
2024-05-23 19:40:26 -07:00
2023-08-24 16:20:30 -07:00
2024-06-16 10:17:57 +03:00
2024-06-15 10:43:08 -07:00
2024-03-04 17:01:21 -08:00
2024-05-05 17:53:35 -07:00
2024-05-24 11:55:08 -07:00
2024-05-05 17:53:26 -07:00
2024-06-24 20:52:11 -07:00
2024-04-25 20:56:19 -07:00
2024-06-05 19:19:26 -07:00
2024-05-05 17:53:49 -07:00
2024-03-13 12:12:21 -07:00
2024-05-19 09:21:03 -07:00
2024-06-24 20:52:10 -07:00
2023-08-21 13:07:20 -07:00
2024-04-25 20:56:19 -07:00
2024-06-15 10:43:05 -07:00
2022-10-03 14:02:43 -07:00
2021-07-23 17:43:28 -07:00
2024-05-23 19:40:26 -07:00
2024-02-22 15:27:17 -08:00
2024-04-11 13:18:36 -04:00
2023-12-12 10:57:02 -08:00
2024-05-23 19:40:26 -07:00
2024-05-23 19:40:26 -07:00
2024-05-23 19:40:26 -07:00
2022-09-26 19:46:25 -07:00
2024-05-19 09:21:03 -07:00
2024-04-25 20:56:32 -07:00
2024-06-24 20:52:11 -07:00
2022-09-11 20:26:01 -07:00
2024-04-25 20:56:14 -07:00
2023-01-18 17:12:52 -08:00
2024-06-05 19:19:23 -07:00
2024-04-25 20:56:04 -07:00
2024-05-19 14:40:44 -07:00
2023-12-10 16:51:50 -08:00
2024-01-08 15:27:15 -08:00
2021-06-29 10:53:47 -07:00
2024-06-15 10:43:04 -07:00
2024-05-05 17:53:45 -07:00
2024-05-19 09:21:03 -07:00
2023-12-10 16:51:53 -08:00
2024-04-25 20:55:56 -07:00
2021-07-04 18:30:17 +00:00
2022-03-08 09:30:46 -05:00
2024-04-25 20:55:49 -07:00
2024-04-25 20:55:56 -07:00
2021-05-07 00:26:35 -07:00
2024-05-07 10:37:00 -07:00
2023-12-10 16:51:39 -08:00
2024-02-22 10:24:47 -08:00
2024-05-19 09:21:03 -07:00
2024-05-11 15:41:35 -07:00
2022-10-03 14:03:05 -07:00
2023-08-21 13:38:02 -07:00
2024-03-26 11:07:23 -07:00
2024-06-15 10:43:08 -07:00
2024-04-25 20:55:57 -07:00
2023-10-04 10:32:26 -07:00
2024-01-05 09:58:32 -08:00
2022-10-03 14:03:07 -07:00
2024-01-08 15:27:15 -08:00
2024-05-19 09:21:03 -07:00
2024-05-19 09:21:03 -07:00
2024-06-24 20:52:09 -07:00
2023-08-18 10:12:53 -07:00
2024-05-05 17:53:40 -07:00
2022-10-03 14:03:36 -07:00
2024-04-25 20:56:37 -07:00
2024-04-25 20:56:40 -07:00
2024-05-05 17:53:50 -07:00
2024-02-20 14:20:48 -08:00
2024-05-21 08:34:51 -07:00
2024-04-25 20:56:43 -07:00
2023-04-12 17:36:23 -07:00
2024-05-19 09:21:03 -07:00
2024-06-17 12:00:22 -07:00
2024-06-24 20:52:08 -07:00
2023-11-28 14:08:38 +01:00
2024-06-05 19:19:23 -07:00
2024-04-15 14:31:47 +02:00
2024-05-07 10:36:59 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:48 -07:00
2024-04-25 20:55:48 -07:00
2024-05-05 17:53:38 -07:00