Re: [RFC][PATCH] make /proc/pid/pagemap work with huge pages and return page size

2008-02-25 Thread Hans Rosenfeld
On Sat, Feb 23, 2008 at 10:31:01AM -0800, Dave Hansen wrote: > > > - 4 bits for the page size, with 0 meaning native page size (4k on x86, > > > 8k on alpha, ...) and values 1-15 being specific to the architecture > > > (I used 1 for 2M, 2 for 4M and 3 for 1G for x86) > > "Native page size"

Re: [RFC][PATCH] make /proc/pid/pagemap work with huge pages and return page size

2008-02-25 Thread Hans Rosenfeld
On Sat, Feb 23, 2008 at 10:31:01AM -0800, Dave Hansen wrote: - 4 bits for the page size, with 0 meaning native page size (4k on x86, 8k on alpha, ...) and values 1-15 being specific to the architecture (I used 1 for 2M, 2 for 4M and 3 for 1G for x86) Native page size probably a bad

[RFC][PATCH] make /proc/pid/pagemap work with huge pages and return page size

2008-02-20 Thread Hans Rosenfeld
think that the definition of the pseudo-pte structure and the page size codes should be made available through a header file, but I didn't do this for now. Signed-Off-By: Hans Rosenfeld <[EMAIL PROTECTED]> --- fs/proc/task_mmu.c | 68 +

[RFC][PATCH] make /proc/pid/pagemap work with huge pages and return page size

2008-02-20 Thread Hans Rosenfeld
structure and the page size codes should be made available through a header file, but I didn't do this for now. Signed-Off-By: Hans Rosenfeld [EMAIL PROTECTED] --- fs/proc/task_mmu.c | 68 + include/asm-x86/pgtable.h|2 + include/asm-x86

[PATCH] x86: fix pmd_bad and pud_bad to support huge pages

2008-02-18 Thread Hans Rosenfeld
problem. Signed-Off-By: Hans Rosenfeld <[EMAIL PROTECTED]> --- include/asm-x86/pgtable_32.h |4 +++- include/asm-x86/pgtable_64.h |6 -- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/asm-x86/pgtable_32.h b/include/asm-x86/pgtable_32.h index a842c72..

[PATCH] x86: fix pmd_bad and pud_bad to support huge pages

2008-02-18 Thread Hans Rosenfeld
. Signed-Off-By: Hans Rosenfeld [EMAIL PROTECTED] --- include/asm-x86/pgtable_32.h |4 +++- include/asm-x86/pgtable_64.h |6 -- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/asm-x86/pgtable_32.h b/include/asm-x86/pgtable_32.h index a842c72..b478efa 100644

[PATCH] /proc/pid/pagemap: fix PM_SPECIAL macro

2008-02-11 Thread Hans Rosenfeld
There seems to be a bug in the PM_SPECIAL macro for /proc/pid/pagemap. I think masking out those other bits makes more sense then setting all those mask bits. Signed-off-by: Hans Rosenfeld <[EMAIL PROTECTED]> --- fs/proc/task_mmu.c |2 +- 1 files changed, 1 insertions(+), 1 del

[PATCH] /proc/pid/pagemap: fix PM_SPECIAL macro

2008-02-11 Thread Hans Rosenfeld
There seems to be a bug in the PM_SPECIAL macro for /proc/pid/pagemap. I think masking out those other bits makes more sense then setting all those mask bits. Signed-off-by: Hans Rosenfeld [EMAIL PROTECTED] --- fs/proc/task_mmu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions