1
0
Fork 0
alistair23-linux/drivers/block/zram
Minchan Kim 51f9f82c85 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>
2017-07-06 16:24:31 -07:00
..
Kconfig zram: delete custom lzo/lz4 2016-07-26 16:19:19 -07:00
Makefile zram: delete custom lzo/lz4 2016-07-26 16:19:19 -07:00
zcomp.c zram: Convert to hotplug state machine 2016-12-02 00:52:39 +01:00
zcomp.h zram: Convert to hotplug state machine 2016-12-02 00:52:39 +01:00
zram_drv.c zram: count same page write as page_stored 2017-07-06 16:24:31 -07:00
zram_drv.h zram: remove zram_meta structure 2017-05-03 15:52:11 -07:00