mm: clean up mm_counter
Presently, per-mm statistics counter is defined by macro in sched.h This patch modifies it to - defined in mm.h as inlinf functions - use array instead of macro's name creation. This patch is for reducing patch size in future patch to modify implementation of per-mm counter. Signed-off-by:KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Reviewed-by:
Minchan Kim <minchan.kim@gmail.com> Cc: Christoph Lameter <cl@linux-foundation.org> Cc: Lee Schermerhorn <lee.schermerhorn@hp.com> Cc: David Rientjes <rientjes@google.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- fs/proc/task_mmu.c 2 additions, 2 deletionsfs/proc/task_mmu.c
- include/linux/mm.h 104 additions, 0 deletionsinclude/linux/mm.h
- include/linux/mm_types.h 22 additions, 11 deletionsinclude/linux/mm_types.h
- include/linux/sched.h 0 additions, 54 deletionsinclude/linux/sched.h
- kernel/fork.c 1 addition, 2 deletionskernel/fork.c
- kernel/tsacct.c 1 addition, 0 deletionskernel/tsacct.c
- mm/filemap_xip.c 1 addition, 1 deletionmm/filemap_xip.c
- mm/fremap.c 1 addition, 1 deletionmm/fremap.c
- mm/memory.c 34 additions, 22 deletionsmm/memory.c
- mm/oom_kill.c 2 additions, 2 deletionsmm/oom_kill.c
- mm/rmap.c 5 additions, 5 deletionsmm/rmap.c
- mm/swapfile.c 1 addition, 1 deletionmm/swapfile.c
Loading
Please register or sign in to comment