mm: multi-gen LRU: clean up sysfs code
authorT.J. Alumbaugh <talumbau@google.com>
Tue, 14 Feb 2023 03:54:44 +0000 (03:54 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 28 Mar 2023 23:20:07 +0000 (16:20 -0700)
commit9a52b2f32a0942047348b30f866b846da5fcf4e3
treeae64c43df91c3c6d28bc8f9e3317fb8f9f645fda
parentd155df53f31068c3340733d586eb9b3ddfd70fc5
mm: multi-gen LRU: clean up sysfs code

This patch cleans up the sysfs code. Specifically,
  1. use sysfs_emit(),
  2. use __ATTR_RW(), and
  3. constify multi-gen LRU struct attribute_group.

Link: https://lkml.kernel.org/r/20230214035445.1250139-1-talumbau@google.com
Signed-off-by: T.J. Alumbaugh <talumbau@google.com>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmzone.h
mm/vmscan.c