Re: [PATCH 1/2] zram: count same page write as page_stored

2017-05-15 Thread Sergey Senozhatsky
On (05/15/17 16:41), Minchan Kim wrote: > 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. > > Signed-off-by: Minchan Kim

Re: [PATCH 1/2] zram: count same page write as page_stored

2017-05-15 Thread Sergey Senozhatsky
On (05/15/17 16:41), Minchan Kim wrote: > 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. > > Signed-off-by: Minchan Kim

[PATCH 1/2] zram: count same page write as page_stored

2017-05-15 Thread Minchan Kim
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. Signed-off-by: Minchan Kim --- drivers/block/zram/zram_drv.c

[PATCH 1/2] zram: count same page write as page_stored

2017-05-15 Thread Minchan Kim
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. Signed-off-by: Minchan Kim --- drivers/block/zram/zram_drv.c | 2 ++ 1 file