linux/arch
Vegard Nossum 3fce371bfa mm: add new mmget() helper
Apart from adding the helper function itself, the rest of the kernel is
converted mechanically using:

  git grep -l 'atomic_inc.*mm_users' | xargs sed -i 's/atomic_inc(&\(.*\)->mm_users);/mmget\(\1\);/'
  git grep -l 'atomic_inc.*mm_users' | xargs sed -i 's/atomic_inc(&\(.*\)\.mm_users);/mmget\(\&\1\);/'

This is needed for a later patch that hooks into the helper, but might
be a worthwhile cleanup on its own.

(Michal Hocko provided most of the kerneldoc comment.)

Link: http://lkml.kernel.org/r/20161218123229.22952-2-vegard.nossum@oracle.com
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-02-27 18:43:48 -08:00
..
alpha mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
arc mm: add new mmget() helper 2017-02-27 18:43:48 -08:00
arm mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
arm64 mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
avr32 kprobes: move kprobe declarations to asm-generic/kprobes.h 2017-02-27 18:43:45 -08:00
blackfin mm: add new mmget() helper 2017-02-27 18:43:48 -08:00
c6x kprobes: move kprobe declarations to asm-generic/kprobes.h 2017-02-27 18:43:45 -08:00
cris kprobes: move kprobe declarations to asm-generic/kprobes.h 2017-02-27 18:43:45 -08:00
frv mm: add new mmget() helper 2017-02-27 18:43:48 -08:00
h8300 kprobes: move kprobe declarations to asm-generic/kprobes.h 2017-02-27 18:43:45 -08:00
hexagon mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
ia64 mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
m32r mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
m68k scripts/spelling.txt: add "efective" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
metag mm: add new mmget() helper 2017-02-27 18:43:48 -08:00
microblaze kprobes: move kprobe declarations to asm-generic/kprobes.h 2017-02-27 18:43:45 -08:00
mips mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
mn10300 mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
nios2 kprobes: move kprobe declarations to asm-generic/kprobes.h 2017-02-27 18:43:45 -08:00
openrisc scripts/spelling.txt: add "efective" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
parisc mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
powerpc mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
s390 mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
score mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
sh mm: add new mmget() helper 2017-02-27 18:43:48 -08:00
sparc mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
tile mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
um kprobes: move kprobe declarations to asm-generic/kprobes.h 2017-02-27 18:43:45 -08:00
unicore32 kprobes: move kprobe declarations to asm-generic/kprobes.h 2017-02-27 18:43:45 -08:00
x86 mm: add new mmgrab() helper 2017-02-27 18:43:48 -08:00
xtensa mm: add new mmget() helper 2017-02-27 18:43:48 -08:00
.gitignore
Kconfig scripts/spelling.txt: add "an user" pattern and fix typo instances 2017-02-27 18:43:46 -08:00