Yang Shi
27fe480582
mm: thp: kill __transhuge_page_enabled()
...
The page fault path checks THP eligibility with __transhuge_page_enabled()
which does the similar thing as hugepage_vma_check(), so use
hugepage_vma_check() instead.
However page fault allows DAX and !anon_vma cases, so added a new flag,
in_pf, to hugepage_vma_check() to make page fault work correctly.
The in_pf flag is also used to skip shmem and file THP for page fault
since shmem handles THP in its own shmem_fault() and file THP allocation
on fault is not supported yet.
Also remove hugepage_vma_enabled() since hugepage_vma_check() is the only
caller now, it is not necessary to have a helper function.
Link: https://lkml.kernel.org/r/20220616174840.1202070-6-shy828301@gmail.com
Signed-off-by: Yang Shi <shy828301@gmail.com>
Reviewed-by: Zach O'Keefe <zokeefe@google.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-06-27 13:45:28 -07:00
..
2022-06-17 06:03:30 +09:00
2022-05-09 16:21:44 -04:00
2022-05-09 16:21:44 -04:00
2022-06-21 11:47:30 -05:00
2021-10-20 21:09:02 -04:00
2022-05-09 16:21:45 -04:00
2022-05-09 16:21:44 -04:00
2022-06-27 13:45:17 -07:00
2022-05-18 00:11:18 +08:00
2022-06-10 20:55:21 +01:00
2022-06-24 13:34:28 -05:00
2022-05-09 16:21:45 -04:00
2022-02-22 18:30:28 +01:00
2022-05-09 16:21:45 -04:00
2022-05-09 16:18:54 -07:00
2022-02-25 11:56:13 +01:00
2022-01-24 14:17:02 +01:00
2022-05-02 11:23:49 -05:00
2022-05-09 16:21:45 -04:00
2022-05-09 16:21:45 -04:00
2022-06-27 13:45:19 -07:00
2022-06-09 21:26:32 +09:00
2022-04-28 16:31:10 +02:00
2022-06-27 13:45:19 -07:00
2022-06-27 13:45:19 -07:00
2022-06-27 13:45:17 -07:00
2022-05-27 11:22:03 -07:00
2022-06-03 10:34:34 -07:00
2022-04-08 23:54:37 +01:00
2022-05-27 15:49:30 -07:00
2022-06-27 13:45:17 -07:00
2022-05-09 23:12:34 -04:00
2022-05-09 23:12:34 -04:00
2022-05-09 16:21:45 -04:00
2022-05-09 16:21:45 -04:00
2022-06-16 19:11:32 -07:00
2022-05-24 19:55:07 -07:00
2022-05-09 16:21:45 -04:00
2022-06-27 13:45:17 -07:00
2022-06-03 14:42:24 -07:00
2022-05-27 15:59:21 -07:00
2022-05-19 19:37:06 +02:00
2022-05-27 21:31:20 -05:00
2022-02-28 10:26:40 -05:00
2022-05-09 16:21:44 -04:00
2022-06-10 20:55:21 +01:00
2022-06-27 13:45:17 -07:00
2021-10-04 22:02:17 +01:00
2022-06-27 13:45:17 -07:00
2022-06-27 13:44:17 -07:00
2022-05-25 19:29:54 -07:00
2022-05-27 11:22:03 -07:00
2022-06-03 16:57:16 -07:00
2022-06-27 13:44:17 -07:00
2022-05-09 16:21:44 -04:00
2022-03-22 15:57:03 -07:00
2022-05-09 23:12:53 -04:00
2022-05-30 11:19:16 -07:00
2022-06-27 13:45:28 -07:00
2022-03-15 11:08:23 -07:00
2022-05-09 16:21:44 -04:00
2022-05-09 16:21:44 -04:00
2022-06-27 13:45:17 -07:00
2021-11-09 10:11:53 -08:00
2022-05-09 23:12:34 -04:00
2022-05-09 16:21:46 -04:00
2022-05-23 20:24:12 -05:00
2022-05-24 19:55:07 -07:00
2022-04-05 15:39:19 +02:00
2022-05-27 11:22:03 -07:00
2022-06-17 19:01:28 -04:00
2022-06-27 13:45:17 -07:00
2022-05-24 19:55:07 -07:00
2022-05-09 16:21:44 -04:00
2022-02-14 10:37:32 +09:00
2022-05-09 16:21:46 -04:00
2022-05-24 19:55:07 -07:00
2022-06-27 13:45:22 -07:00
2022-06-08 19:13:55 +09:00
2022-04-01 19:57:03 -07:00
2021-09-19 22:35:37 -04:00
2022-06-14 12:18:47 +02:00
2021-09-05 10:15:05 -07:00
2022-03-08 12:55:29 -06:00
2022-03-03 20:38:56 -08:00
2022-04-15 14:49:56 -07:00
2022-04-22 10:57:18 -07:00
2022-02-09 09:50:02 -08:00
2022-05-09 23:12:34 -04:00
2022-03-03 20:38:56 -08:00
2022-06-27 13:45:06 -07:00
2021-11-06 13:30:32 -07:00
2022-06-27 13:45:22 -07:00
2022-03-22 15:57:03 -07:00
2022-04-17 19:50:02 -06:00
2021-09-03 09:58:10 -07:00
2021-09-06 07:20:56 -04:00
2022-01-22 08:33:35 +02:00
2022-06-27 13:45:06 -07:00
2022-05-09 18:20:49 -07:00
2022-06-04 18:52:00 -07:00
2022-06-05 15:03:03 -04:00
2022-01-18 09:23:19 +02:00
2021-12-09 14:09:36 -05:00
2022-06-06 09:54:30 +02:00
2022-05-19 23:25:10 -04:00
2022-06-06 09:54:30 +02:00
2022-06-04 19:00:05 -07:00
2022-06-23 11:06:43 -06:00
2022-04-30 08:39:54 -06:00
2022-04-24 18:18:18 -06:00
2022-04-01 19:35:56 -07:00
2022-04-28 23:16:15 -07:00
2022-05-30 10:56:18 -07:00
2021-10-18 20:22:03 -10:00
2022-05-09 16:21:44 -04:00
2022-05-19 12:25:39 -04:00
2022-02-01 11:13:24 -08:00
2022-06-27 13:45:17 -07:00
2022-05-09 23:12:34 -04:00
2022-06-04 19:07:15 -07:00
2022-06-04 19:00:05 -07:00
2022-05-31 14:10:54 -07:00
2022-05-27 11:22:03 -07:00
2022-04-19 10:19:02 -07:00
2021-12-03 18:44:06 +01:00
2022-04-26 13:36:25 -07:00
2022-06-27 13:45:22 -07:00
2022-01-11 09:03:05 -08:00
2022-05-22 21:03:01 +01:00
2022-01-17 05:49:30 +02:00
2022-03-21 12:59:01 -04:00
2022-05-31 14:10:54 -07:00
2022-06-27 13:45:17 -07:00
2022-04-26 13:36:25 -07:00
2022-01-22 08:33:36 +02:00
2022-06-27 13:45:26 -07:00
2022-04-24 18:18:37 -06:00