[PATCH 0/3] fix unsigned pcp adjustments

2013-10-27 Thread Greg Thelen
As of v3.11-9444-g3ea67d0 "memcg: add per cgroup writeback pages accounting" memcg use of __this_cpu_add(counter, -nr_pages) leads to incorrect statistic values because the negated nr_pages is not sign extended (counter is long, nr_pages is unsigned int). The memcg fix is __this_cpu_sub(counter,

[PATCH 0/3] fix unsigned pcp adjustments

2013-10-27 Thread Greg Thelen
As of v3.11-9444-g3ea67d0 memcg: add per cgroup writeback pages accounting memcg use of __this_cpu_add(counter, -nr_pages) leads to incorrect statistic values because the negated nr_pages is not sign extended (counter is long, nr_pages is unsigned int). The memcg fix is __this_cpu_sub(counter,