lkml.org 
[lkml]   [2014]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCHv3] zram: use notify_free to account all free notifications
Date
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
account REQ_DISCARDs when zram is not used as a swap device.

Please refer to:
https://lkml.org/lkml/2014/9/3/1115

V3:
-- account all notifications, including those that hit ZRAM_ZERO page
V2:
-- fix accounting error found by Minchan Kim.

Sergey Senozhatsky (1):
zram: use notify_free to account all free notifications

Documentation/ABI/testing/sysfs-block-zram | 13 ++++++++-----
drivers/block/zram/zram_drv.c | 1 +
2 files changed, 9 insertions(+), 5 deletions(-)

--
2.1.0.350.g8b25fe0



\
 
 \ /
  Last update: 2014-09-15 17:21    [W:0.038 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site