summaryrefslogtreecommitdiffstats
path: root/mm/vmstat.c
diff options
context:
space:
mode:
authorMinchan Kim2017-07-07 00:37:12 +0200
committerLinus Torvalds2017-07-07 01:24:31 +0200
commit51f9f82c855d65ef14c2af10e0d2c86ec332a182 (patch)
treed806e1d2add2aaae7ec9a48282751048a384b6c3 /mm/vmstat.c
parentksm: optimize refile of stable_node_dup at the head of the chain (diff)
downloadkernel-qcow2-linux-51f9f82c855d65ef14c2af10e0d2c86ec332a182.tar.gz
kernel-qcow2-linux-51f9f82c855d65ef14c2af10e0d2c86ec332a182.tar.xz
kernel-qcow2-linux-51f9f82c855d65ef14c2af10e0d2c86ec332a182.zip
zram: count same page write as page_stored
Regardless of whether it is same page or not, it's surely write and stored to zram so we should increase pages_stored stat. Otherwise, user can see zero value via mm_stats although he writes a lot of pages to zram. Link: http://lkml.kernel.org/r/1494834068-27004-1-git-send-email-minchan@kernel.org Signed-off-by: Minchan Kim <minchan@kernel.org> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmstat.c')
0 files changed, 0 insertions, 0 deletions