]> www.infradead.org Git - users/willy/xarray.git/commit
mm: shrinker: use min() to improve shrinker_debugfs_scan_write()
authorThorsten Blum <thorsten.blum@toblux.com>
Tue, 20 Aug 2024 04:22:55 +0000 (06:22 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 4 Sep 2024 04:15:40 +0000 (21:15 -0700)
commit49029c4db368518edac0409a40df9d852aac92f5
treedc474b47db6772986736c0e25162d3b185ed7c5c
parent2e6d88e9d455fae9c4ac95c893362258f9540dfa
mm: shrinker: use min() to improve shrinker_debugfs_scan_write()

Use the min() macro to simplify the shrinker_debugfs_scan_write() function
and improve its readability.

Link: https://lkml.kernel.org/r/20240820042254.99115-2-thorsten.blum@toblux.com
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Reviewed-by: Muchun Song <muchun.song@linux.dev>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Qi Zheng <zhengqi.arch@bytedance.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/shrinker_debug.c