mbox series

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

Message ID 20240424225449.1498244-1-mcgrof@kernel.org (mailing list archive)
Headers show
Series mm/huge_memory: couple fixes and one cleanup | expand

Message

Luis Chamberlain April 24, 2024, 10:54 p.m. UTC
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@kernel.org

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(-)

Comments

Luis Chamberlain April 24, 2024, 10:55 p.m. UTC | #1
The subject hints at a cleanup but I decided to leave that for another
separate patch which I'll send next.

  Luis