]> git.baikalelectronics.ru Git - kernel.git/commit
mm: clean up mm_counter
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Fri, 5 Mar 2010 21:41:39 +0000 (13:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Mar 2010 19:26:23 +0000 (11:26 -0800)
commit138be4a321d48089594df525dbeea985bc0440ac
treeaa968c8a4093234e4623a34c0415bf9d8683671c
parent2738b578d55c6f8e2ba5e47de8a6c885f436e475
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>
12 files changed:
fs/proc/task_mmu.c
include/linux/mm.h
include/linux/mm_types.h
include/linux/sched.h
kernel/fork.c
kernel/tsacct.c
mm/filemap_xip.c
mm/fremap.c
mm/memory.c
mm/oom_kill.c
mm/rmap.c
mm/swapfile.c