]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/slub: Replace sort_r() with sort() for debugfs stack trace sorting
authorKuan-Wei Chiu <visitorckw@gmail.com>
Tue, 26 Aug 2025 06:23:15 +0000 (14:23 +0800)
committerVlastimil Babka <vbabka@suse.cz>
Wed, 10 Sep 2025 20:52:33 +0000 (22:52 +0200)
commitba7a896427cbade13d30f3c7e18c15e8be243c18
treec6d87e4b45a38d99f39cff2795f2ab87276a105a
parente1c4350327b39c9cad27b6c5779b3754384f26c8
mm/slub: Replace sort_r() with sort() for debugfs stack trace sorting

The comparison function used to sort stack trace locations in debugfs
never relied on the third argument. Therefore, sort_r() is unnecessary.
Switch to sort() with a two-argument comparison function to keep the
code simple and aligned with the intended usage.

Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c