zram: remove zram stats code duplication
(cherry pick from commit a68eb3b65e658406d386bebef02277f4007b2f45) 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> Bug: 24810447 Change-Id: Ib1b65be36fc70779790023972168c08048e39fbc
Loading
Please register or sign in to comment