Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232735
b: refs/heads/master
c: 3751d60
h: refs/heads/master
i:
  232733: 13bd9f2
  232731: 4a77ccf
  232727: efb6813
  232719: ef56c15
  232703: 6dae695
v: v3
  • Loading branch information
KAMEZAWA Hiroyuki authored and Linus Torvalds committed Feb 3, 2011
1 parent f77d1d0 commit 19df149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8493ae439f7038b502df1d687e61dde54c27ca92
refs/heads/master: 3751d60430fe4c26460a5ca8ad8672d32f93bcb1
4 changes: 3 additions & 1 deletion trunk/mm/memcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,10 @@ static void mem_cgroup_charge_statistics(struct mem_cgroup *mem,
/* pagein of a big page is an event. So, ignore page size */
if (nr_pages > 0)
__this_cpu_inc(mem->stat->count[MEM_CGROUP_STAT_PGPGIN_COUNT]);
else
else {
__this_cpu_inc(mem->stat->count[MEM_CGROUP_STAT_PGPGOUT_COUNT]);
nr_pages = -nr_pages; /* for event */
}

__this_cpu_add(mem->stat->count[MEM_CGROUP_EVENTS], nr_pages);

Expand Down

0 comments on commit 19df149

Please sign in to comment.