aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/test_hmm.c
diff options
context:
space:
mode:
authorShiyang Ruan <ruansy.fnst@fujitsu.com>2025-01-08 09:52:23 +0800
committerAndrew Morton <akpm@linux-foundation.org>2025-03-16 22:05:56 -0700
commit100bc3b877fca43e46485883eaf179aec7a11c86 (patch)
tree6aa28a30793b98ee9365bafc3974fc5d9490d600 /lib/test_hmm.c
parentselftests/mm: test splitting file-backed THP to any lower order (diff)
downloadwireguard-linux-100bc3b877fca43e46485883eaf179aec7a11c86.tar.xz
wireguard-linux-100bc3b877fca43e46485883eaf179aec7a11c86.zip
drivers/base/memory: simplify outputting of valid_zones_show()
No need to specify position at the first writing to the buf because the @len is always 0 at this time. Use sysfs_emit() instead to simplify it. Also avoid setting/checking default_zone with a conditional operator. Link: https://lkml.kernel.org/r/20250108015223.1522887-1-ruansy.fnst@fujitsu.com Signed-off-by: Shiyang Ruan <ruansy.fnst@fujitsu.com> Acked-by: David Hildenbrand <david@redhat.com> Cc: Oscar Salvador <osalvador@suse.de> Cc: "Rafael J. Wysocki" <rafael@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/test_hmm.c')
0 files changed, 0 insertions, 0 deletions