diff options
author | Sergey Senozhatsky <sergey.senozhatsky@gmail.com> | 2014-04-07 15:38:04 -0700 |
---|---|---|
committer | Simon Shields <keepcalm444@gmail.com> | 2016-06-12 21:19:58 +1000 |
commit | 9ef962eb44d9ee9da3e805cf47d9fab2f053adbe (patch) | |
tree | 1df448a8a2e99d9cc87d812ba35e0a8462eec801 /drivers/net/ipg.c | |
parent | 6ab83f33b8659f5ca6126954d0dc5ad553835c1d (diff) | |
download | kernel_samsung_smdk4412-9ef962eb44d9ee9da3e805cf47d9fab2f053adbe.zip kernel_samsung_smdk4412-9ef962eb44d9ee9da3e805cf47d9fab2f053adbe.tar.gz kernel_samsung_smdk4412-9ef962eb44d9ee9da3e805cf47d9fab2f053adbe.tar.bz2 |
zram: remove zram stats code duplication
Introduce ZRAM_ATTR_RO macro that generates device_attribute and default
ATTR show() function for existing atomic64_t zram stats.
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Jerome Marchand <jmarchan@redhat.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net/ipg.c')
0 files changed, 0 insertions, 0 deletions