]> Git Repo - linux.git/commit
zram: count same page write as page_stored
authorMinchan Kim <[email protected]>
Thu, 6 Jul 2017 22:37:12 +0000 (15:37 -0700)
committerLinus Torvalds <[email protected]>
Thu, 6 Jul 2017 23:24:31 +0000 (16:24 -0700)
commit51f9f82c855d65ef14c2af10e0d2c86ec332a182
treed806e1d2add2aaae7ec9a48282751048a384b6c3
parent80b18dfa53bbb03085eba6401f5d29dad49205b7
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/[email protected]
Signed-off-by: Minchan Kim <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/block/zram/zram_drv.c
This page took 0.054563 seconds and 4 git commands to generate.