Re: [PATCHv3 4/8] zram: use atomic64_t for all zram stats

2014-01-16 Thread Minchan Kim
On Thu, Jan 16, 2014 at 04:12:12PM +0300, Sergey Senozhatsky wrote: > This is a preparation patch for stats code duplication removal. > > 1) use atomic64_t for `pages_zero' and `pages_stored' zram stats. > 2) `compr_size' and `pages_zero' struct zram_stats members did not > follow the existing dev

Re: [PATCHv3 4/8] zram: use atomic64_t for all zram stats

2014-01-16 Thread Jerome Marchand
On 01/16/2014 02:12 PM, Sergey Senozhatsky wrote: > This is a preparation patch for stats code duplication removal. > > 1) use atomic64_t for `pages_zero' and `pages_stored' zram stats. > 2) `compr_size' and `pages_zero' struct zram_stats members did not > follow the existing device attr naming sc

[PATCHv3 4/8] zram: use atomic64_t for all zram stats

2014-01-16 Thread Sergey Senozhatsky
This is a preparation patch for stats code duplication removal. 1) use atomic64_t for `pages_zero' and `pages_stored' zram stats. 2) `compr_size' and `pages_zero' struct zram_stats members did not follow the existing device attr naming scheme: zram_stats.ATTR has ATTR_show() function. rename them: