Re: [PATCHv2] zram: use notify_free to account all free notifications

2014-09-15 Thread Sergey Senozhatsky
Hi Minchan, On (09/15/14 08:22), Minchan Kim wrote: > Hi Sergey, > > On Sat, Sep 13, 2014 at 12:52:14PM +0900, Sergey Senozhatsky wrote: > > notify_free device attribute accounts the number of slot free notifications > > and internally represents the number of zram_free_page() calls. Slot free >

Re: [PATCHv2] zram: use notify_free to account all free notifications

2014-09-15 Thread Sergey Senozhatsky
Hi Minchan, On (09/15/14 08:22), Minchan Kim wrote: Hi Sergey, On Sat, Sep 13, 2014 at 12:52:14PM +0900, Sergey Senozhatsky wrote: notify_free device attribute accounts the number of slot free notifications and internally represents the number of zram_free_page() calls. Slot free

Re: [PATCHv2] zram: use notify_free to account all free notifications

2014-09-14 Thread Minchan Kim
Hi Sergey, On Sat, Sep 13, 2014 at 12:52:14PM +0900, Sergey Senozhatsky wrote: > notify_free device attribute accounts the number of slot free notifications > and internally represents the number of zram_free_page() calls. Slot free > notifications are sent only when device is used as a swap

Re: [PATCHv2] zram: use notify_free to account all free notifications

2014-09-14 Thread Minchan Kim
Hi Sergey, On Sat, Sep 13, 2014 at 12:52:14PM +0900, Sergey Senozhatsky wrote: notify_free device attribute accounts the number of slot free notifications and internally represents the number of zram_free_page() calls. Slot free notifications are sent only when device is used as a swap device,

[PATCHv2] zram: use notify_free to account all free notifications

2014-09-12 Thread Sergey Senozhatsky
Hello, This patch change the way zram uses `notify_free' stat attr. Currently, this attr accounts only swap free notifications, iow used only when zram device is a swap device. The patch preserves the existing behaviour and additionally makes `notify_free' universal, so it's also used by zram to

[PATCHv2] zram: use notify_free to account all free notifications

2014-09-12 Thread Sergey Senozhatsky
notify_free device attribute accounts the number of slot free notifications and internally represents the number of zram_free_page() calls. Slot free notifications are sent only when device is used as a swap device, hence notify_free is used only for swap devices. Since f4659d8e620d08 (zram:

[PATCHv2] zram: use notify_free to account all free notifications

2014-09-12 Thread Sergey Senozhatsky
Hello, This patch change the way zram uses `notify_free' stat attr. Currently, this attr accounts only swap free notifications, iow used only when zram device is a swap device. The patch preserves the existing behaviour and additionally makes `notify_free' universal, so it's also used by zram to

[PATCHv2] zram: use notify_free to account all free notifications

2014-09-12 Thread Sergey Senozhatsky
notify_free device attribute accounts the number of slot free notifications and internally represents the number of zram_free_page() calls. Slot free notifications are sent only when device is used as a swap device, hence notify_free is used only for swap devices. Since f4659d8e620d08 (zram: