mm/slub: Fix debugfs stack trace sorting and simplify sort call
Status from this message: Applied to slab/for-next, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 3 repliesApplied
- v12 patches 9 repliesSuperseded
Changes in v2 from the cover letter
* Use cmp_int().
* Drop Cc stable.
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm/slub: Fix cmp_loc_by_count() to return 0 when counts are equalmm/ | +1 | 1 reply | |
| 2/2 | mm/slub: Replace sort_r() with sort() for debugfs stack trace sortingmm/ | +3 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Joshua Hahn | Harry Yoo |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] mm/slub: Fix debugfs stack trace sorting and simplify sort call
Fix the comparison function used for sorting stack trace locations in the slub debugfs interface. The original implementation violated the antisymmetry property required by sort(), which could lead to unreliable ordering of the output. The patches correct the comparison function to return 0 when counts are equal and replace the unnecessary use of sort_r() with the simpler sort().
---
Changes in v2:
* Use cmp_int().
* Drop Cc stable.
v1: https://lore.kernel.org/lkml/[email protected]/
Kuan-Wei Chiu (2):
mm/slub: Fix cmp_loc_by_count() to return 0 when counts are equal mm/slub: Replace sort_r() with sort() for debugfs stack trace sorting
mm/slub.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
Signature · 1 line
2.34.1