mm: reuse DEFINE_SHOW_ATTRIBUTE() macro
authorAndy Shevchenko <[email protected]>
Thu, 5 Apr 2018 23:23:16 +0000 (16:23 -0700)
committerLinus Torvalds <[email protected]>
Fri, 6 Apr 2018 04:36:25 +0000 (21:36 -0700)
commit5ad3509364a86461188184e2ae7ca517dca6f389
treeb2c4e1c94eb4d04b2fbc31dd8e13b039ee44e161
parent7f16f91fdfce694493e539bff17acaedaebc366d
mm: reuse DEFINE_SHOW_ATTRIBUTE() macro

...instead of open coding file operations followed by custom ->open()
callbacks per each attribute.

[[email protected]: add tags, fix compilation issue]
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Andy Shevchenko <[email protected]>
Reviewed-by: Matthew Wilcox <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Dennis Zhou <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Nitin Gupta <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/backing-dev.c
mm/memblock.c
mm/percpu-stats.c
mm/zsmalloc.c