[PATCH 0/2] mm/huge_memory: couple fixes and one cleanup

From: Luis Chamberlain
Date: Wed Apr 24 2024 - 18:55:10 EST


I've been stress testing large folio splits using the new debugfs interface
with a new fstests test [0], to make the debugfs interface more useful it helps
to do bounds checks on input parameters so this fixes two issues found while
doing automatic stress testing of the debugfs interface with found files.

Provided there are no issues I think this should go in for v6.9-rc6.

Also, *should* we strive to support splits for large folios to min order
with say MADV_NOHUGEPAGE ?

[0] https://lkml.kernel.org/r/20240424224649.1494092-1-mcgrof@xxxxxxxxxx

Luis Chamberlain (2):
mm/huge_memory: skip invalid debugfs file entry for folio split
mm/huge_memory: cap max length on debugfs file entry folio split

mm/huge_memory.c | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)

--
2.43.0