Re: [PATCH 1/3] mm: introduce mm_[p4d|pud|pmd]_folded

2018-10-31 Thread Kirill A. Shutemov
On Wed, Oct 31, 2018 at 10:35:36AM +0100, Martin Schwidefsky wrote: > > Maybe > > return __is_defined(__PAGETABLE_P4D_FOLDED); > > > > ? > > I have tried that, doesn't work. The reason is that the > __PAGETABLE_xxx_FOLDED defines to not have a value. > > #define __PAGETABLE_P4D_FOLDED >

Re: [PATCH 1/3] mm: introduce mm_[p4d|pud|pmd]_folded

2018-10-31 Thread Kirill A. Shutemov
On Wed, Oct 31, 2018 at 10:35:36AM +0100, Martin Schwidefsky wrote: > > Maybe > > return __is_defined(__PAGETABLE_P4D_FOLDED); > > > > ? > > I have tried that, doesn't work. The reason is that the > __PAGETABLE_xxx_FOLDED defines to not have a value. > > #define __PAGETABLE_P4D_FOLDED >

Re: [PATCH 1/3] mm: introduce mm_[p4d|pud|pmd]_folded

2018-10-31 Thread Martin Schwidefsky
On Wed, 31 Oct 2018 12:02:55 +0300 "Kirill A. Shutemov" wrote: > On Mon, Oct 15, 2018 at 06:42:37PM +0200, Martin Schwidefsky wrote: > > Add three architecture overrideable function to test if the > > p4d, pud, or pmd layer of a page table is folded or not. > > > > Signed-off-by: Martin

Re: [PATCH 1/3] mm: introduce mm_[p4d|pud|pmd]_folded

2018-10-31 Thread Martin Schwidefsky
On Wed, 31 Oct 2018 12:02:55 +0300 "Kirill A. Shutemov" wrote: > On Mon, Oct 15, 2018 at 06:42:37PM +0200, Martin Schwidefsky wrote: > > Add three architecture overrideable function to test if the > > p4d, pud, or pmd layer of a page table is folded or not. > > > > Signed-off-by: Martin

Re: [PATCH 1/3] mm: introduce mm_[p4d|pud|pmd]_folded

2018-10-31 Thread Kirill A. Shutemov
On Mon, Oct 15, 2018 at 06:42:37PM +0200, Martin Schwidefsky wrote: > Add three architecture overrideable function to test if the > p4d, pud, or pmd layer of a page table is folded or not. > > Signed-off-by: Martin Schwidefsky > --- > include/linux/mm.h | 40

Re: [PATCH 1/3] mm: introduce mm_[p4d|pud|pmd]_folded

2018-10-31 Thread Kirill A. Shutemov
On Mon, Oct 15, 2018 at 06:42:37PM +0200, Martin Schwidefsky wrote: > Add three architecture overrideable function to test if the > p4d, pud, or pmd layer of a page table is folded or not. > > Signed-off-by: Martin Schwidefsky > --- > include/linux/mm.h | 40

[PATCH 1/3] mm: introduce mm_[p4d|pud|pmd]_folded

2018-10-15 Thread Martin Schwidefsky
Add three architecture overrideable function to test if the p4d, pud, or pmd layer of a page table is folded or not. Signed-off-by: Martin Schwidefsky --- include/linux/mm.h | 40 1 file changed, 40 insertions(+) diff --git a/include/linux/mm.h

[PATCH 1/3] mm: introduce mm_[p4d|pud|pmd]_folded

2018-10-15 Thread Martin Schwidefsky
Add three architecture overrideable function to test if the p4d, pud, or pmd layer of a page table is folded or not. Signed-off-by: Martin Schwidefsky --- include/linux/mm.h | 40 1 file changed, 40 insertions(+) diff --git a/include/linux/mm.h