Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Commit [d559db] Maximize Restore History

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>

KAMEZAWA Hiroyuki KAMEZAWA Hiroyuki 2010-03-05

Linus Torvalds Linus Torvalds 2010-03-06

changed fs/proc/task_mmu.c
changed include/linux/mm.h
changed include/linux/mm_types.h
changed include/linux/sched.h
changed kernel/fork.c
changed kernel/tsacct.c
changed mm/filemap_xip.c
changed mm/fremap.c
changed mm/memory.c
changed mm/oom_kill.c
changed mm/rmap.c
changed mm/swapfile.c
fs/proc/task_mmu.c Diff Switch to side-by-side view
Loading...
include/linux/mm.h Diff Switch to side-by-side view
Loading...
include/linux/mm_types.h Diff Switch to side-by-side view
Loading...
include/linux/sched.h Diff Switch to side-by-side view
Loading...
kernel/fork.c Diff Switch to side-by-side view
Loading...
kernel/tsacct.c Diff Switch to side-by-side view
Loading...
mm/filemap_xip.c Diff Switch to side-by-side view
Loading...
mm/fremap.c Diff Switch to side-by-side view
Loading...
mm/memory.c Diff Switch to side-by-side view
Loading...
mm/oom_kill.c Diff Switch to side-by-side view
Loading...
mm/rmap.c Diff Switch to side-by-side view
Loading...
mm/swapfile.c Diff Switch to side-by-side view
Loading...