vmstat: create fold_diff
authorChristoph Lameter <cl@linux.com>
Wed, 11 Sep 2013 21:21:31 +0000 (14:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:57:31 +0000 (15:57 -0700)
commit4edb0748b23887140578d68f5f4e6e2de337a481
treee10b862f2c94b6da38a10dd0ddf376298a579577
parent2bb921e526656556e68f99f5f15a4a1bf2691844
vmstat: create fold_diff

Both functions that update global counters use the same mechanism.

Create a function that contains the common code.

Signed-off-by: Christoph Lameter <cl@linux.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
CC: Tejun Heo <tj@kernel.org>
Cc: Joonsoo Kim <js1304@gmail.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmstat.c