Skip to content

mm: prepare for converting vm->vm_flags to 64-bit

Konstantin Khlebnikov linux-arm-kernel linux-ia64 linux-media linux-mips linux-mm linux-parisc linux-s390 linuxppc-dev lkml 1 version In review

Get series with b4
b4 am 20120321065140.13852.52315.stgit@zurg

Versions newest first

  1. v1 Latest16 patches 30 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16mm: introduce NR_VMA_FLAGSinclude/linux/mm.h include/linux/mm_types.h kernel/bounds.c+15 -00 replies
2/16mm: use vm_flags_t for vma flagsdrivers/char/mem.c fs/binfmt_elf.c fs/exec.c +21 more+79 -800 replies
3/16mm/shmem: use vm_flags_t for vma flagsinclude/linux/mm.h include/linux/shmem_fs.h mm/shmem.c+32 -290 replies
4/16mm/nommu: use vm_flags_t for vma flagsfs/proc/nommu.c fs/proc/task_nommu.c mm/nommu.c+20 -164 replies
5/16mm/drivers: use vm_flags_t for vma flagsdrivers/media/video/omap3isp/ispqueue.h drivers/staging/android/ashmem.c+2 -22 replies
6/16mm/x86: use vm_flags_t for vma flagsarch/x86/mm/hugetlbpage.c+2 -21 reply
7/16mm/arm: use vm_flags_t for vma flagsarch/arm/include/asm/cacheflush.h arch/arm/kernel/asm-offsets.c arch/arm/mm/fault.c+9 -41 reply
8/16mm/unicore32: use vm_flags_t for vma flagsarch/unicore32/kernel/asm-offsets.c arch/unicore32/mm/fault.c+6 -23 replies
9/16mm/ia64: use vm_flags_t for vma flagsarch/ia64/mm/fault.c+4 -50 replies
10/16mm/powerpc: use vm_flags_t for vma flagsarch/powerpc/include/asm/mman.h+1 -10 replies
11/16mm/s390: use vm_flags_t for vma flagsarch/s390/mm/fault.c+5 -30 replies
12/16mm/mips: use vm_flags_t for vma flagsarch/mips/mm/c-r3k.c arch/mips/mm/c-r4k.c arch/mips/mm/c-tx39.c+5 -50 replies
13/16mm/parisc: use vm_flags_t for vma flagsarch/parisc/mm/fault.c+2 -20 replies
14/16mm/score: use vm_flags_t for vma flagsarch/score/mm/cache.c+3 -30 replies
15/16mm: cast vm_flags_t to u64 before printingarch/sh/mm/tlbflush_64.c drivers/infiniband/hw/ipath/ipath_file_ops.c drivers/infiniband/hw/qib/qib_file_ops.c +5 more+45 -300 replies
16/16mm: vm_flags_t strict type checkinginclude/linux/mm.h include/linux/mm_types.h+97 -451 reply

Reviews trailers per patch

2 of 16 patches have a Reviewed-by or Acked-by.

PatchLaurent PinchartGreg Kroah-HartmanGreg Ungerer
1/16
2/16
3/16
4/16A-b
5/16A-b A-b
6/16
7/16
8/16
9/16
10/16
11/16
12/16
13/16
14/16
15/16
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/16] mm: prepare for converting vm->vm_flags to 64-bit

There is good old tradition: every year somebody submit patches for extending vma->vm_flags upto 64-bits, because there no free bits left on 32-bit systems.

previous attempts:
https://lkml.org/lkml/2011/4/12/24 (KOSAKI Motohiro)
https://lkml.org/lkml/2010/4/27/23 (Benjamin Herrenschmidt)
https://lkml.org/lkml/2009/10/1/202 (Hugh Dickins)

Here already exist special type for this: vm_flags_t, but not all code uses it. So, before switching vm_flags_t from unsinged long to u64 we must spread vm_flags_t everywhere and fix all possible type-casting problems.

There is no functional changes in this patch set, it only prepares code for vma->vm_flags converting.

---

Konstantin Khlebnikov (16):
mm: introduce NR_VMA_FLAGS
mm: use vm_flags_t for vma flags
mm/shmem: use vm_flags_t for vma flags
mm/nommu: use vm_flags_t for vma flags
mm/drivers: use vm_flags_t for vma flags
mm/x86: use vm_flags_t for vma flags
mm/arm: use vm_flags_t for vma flags
mm/unicore32: use vm_flags_t for vma flags
mm/ia64: use vm_flags_t for vma flags
mm/powerpc: use vm_flags_t for vma flags
mm/s390: use vm_flags_t for vma flags
mm/mips: use vm_flags_t for vma flags
mm/parisc: use vm_flags_t for vma flags
mm/score: use vm_flags_t for vma flags
mm: cast vm_flags_t to u64 before printing
mm: vm_flags_t strict type checking

 arch/arm/include/asm/cacheflush.h                |    5 -
 arch/arm/kernel/asm-offsets.c                    |    6 +
 arch/arm/mm/fault.c                              |    2 
 arch/ia64/mm/fault.c                             |    9 +
 arch/mips/mm/c-r3k.c                             |    2 
 arch/mips/mm/c-r4k.c                             |    6 -
 arch/mips/mm/c-tx39.c                            |    2 
 arch/parisc/mm/fault.c                           |    4 -
 arch/powerpc/include/asm/mman.h                  |    2 
 arch/s390/mm/fault.c                             |    8 +
 arch/score/mm/cache.c                            |    6 -
 arch/sh/mm/tlbflush_64.c                         |    2 
 arch/unicore32/kernel/asm-offsets.c              |    6 +
 arch/unicore32/mm/fault.c                        |    2 
 arch/x86/mm/hugetlbpage.c                        |    4 -
 drivers/char/mem.c                               |    2 
 drivers/infiniband/hw/ipath/ipath_file_ops.c     |    6 +
 drivers/infiniband/hw/qib/qib_file_ops.c         |    6 +
 drivers/media/video/omap3isp/ispqueue.h          |    2 
 drivers/staging/android/ashmem.c                 |    2 
 drivers/staging/android/binder.c                 |   15 +-
 drivers/staging/tidspbridge/core/tiomap3430.c    |   13 +-
 drivers/staging/tidspbridge/rmgr/drv_interface.c |    4 -
 fs/binfmt_elf.c                                  |    2 
 fs/binfmt_elf_fdpic.c                            |   24 ++-
 fs/exec.c                                        |    2 
 fs/proc/nommu.c                                  |    3 
 fs/proc/task_nommu.c                             |   14 +-
 include/linux/backing-dev.h                      |    7 -
 include/linux/huge_mm.h                          |    4 -
 include/linux/ksm.h                              |    8 +
 include/linux/mm.h                               |  163 +++++++++++++++-------
 include/linux/mm_types.h                         |   11 +
 include/linux/mman.h                             |    4 -
 include/linux/rmap.h                             |    8 +
 include/linux/shmem_fs.h                         |    5 -
 kernel/bounds.c                                  |    2 
 kernel/events/core.c                             |    4 -
 kernel/fork.c                                    |    2 
 kernel/sys.c                                     |    4 -
 mm/backing-dev.c                                 |    4 +
 mm/huge_memory.c                                 |    2 
 mm/ksm.c                                         |    4 -
 mm/madvise.c                                     |    2 
 mm/memory.c                                      |    9 +
 mm/mlock.c                                       |    2 
 mm/mmap.c                                        |   36 ++---
 mm/mprotect.c                                    |    9 +
 mm/mremap.c                                      |    2 
 mm/nommu.c                                       |   19 +--
 mm/rmap.c                                        |   16 +-
 mm/shmem.c                                       |   54 ++++---
 mm/vmscan.c                                      |    4 -
 53 files changed, 322 insertions(+), 224 deletions(-)
Signature · 8 lines
Signature

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>