The ternary operator in compare_ts() returns 1 when timestamps are equal,
causing unstable sorting behavior. Replace with explicit three-way
comparison that returns 0 for equal timestamps, ensuring stable qsort
ordering and consistent output.
Link: https://lkml.kernel.org/r/20251209044552.3396468-1-kaushlendra.kumar@intel.com
Fixes:
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile | ||
| page-types.c | ||
| page_owner_sort.c | ||
| show_page_info.py | ||
| slabinfo-gnuplot.sh | ||
| slabinfo.c | ||
| thp_swap_allocator_test.c | ||
| thpmaps | ||