Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: move PMD_ORDER to pgtable.h

Patch series "Change calling convention for ->huge_fault", v2.

There are two unrelated changes to the calling convention for
->huge_fault. I've bundled them together to help people notice the
change. The first is to improve scalability of DAX page faults by
allowing them to be handled under the VMA lock. The second is to remove
enum page_entry_size since it's really unnecessary. The changelogs and
documentation updates hopefully work to that end.


This patch (of 3):

Allow this to be used in generic code. Also add PUD_ORDER.

Link: https://lkml.kernel.org/r/20230818202335.2739663-1-willy@infradead.org
Link: https://lkml.kernel.org/r/20230818202335.2739663-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Matthew Wilcox (Oracle) and committed by
Andrew Morton
051ddcfe bb7dbaaf

+3 -3
-3
fs/dax.c
··· 49 49 #define PG_PMD_COLOUR ((PMD_SIZE >> PAGE_SHIFT) - 1) 50 50 #define PG_PMD_NR (PMD_SIZE >> PAGE_SHIFT) 51 51 52 - /* The order of a PMD entry */ 53 - #define PMD_ORDER (PMD_SHIFT - PAGE_SHIFT) 54 - 55 52 static wait_queue_head_t wait_table[DAX_WAIT_TABLE_ENTRIES]; 56 53 57 54 static int __init init_dax_wait_table(void)
+3
include/linux/pgtable.h
··· 5 5 #include <linux/pfn.h> 6 6 #include <asm/pgtable.h> 7 7 8 + #define PMD_ORDER (PMD_SHIFT - PAGE_SHIFT) 9 + #define PUD_ORDER (PUD_SHIFT - PAGE_SHIFT) 10 + 8 11 #ifndef __ASSEMBLY__ 9 12 #ifdef CONFIG_MMU 10 13