diff options
author | Luis Chamberlain <[email protected]> | 2024-08-22 15:50:12 +0200 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2024-09-02 16:18:38 +0200 |
commit | e220917fa50774fedb27c075df2261fd664e8ca3 (patch) | |
tree | d383afb1c8518c346f650955a41c899ca0e01138 /lib/crypto/mpi/mpi-sub-ui.c | |
parent | 26cfdb395eefdb2d34e51184d8466ee04a1618d5 (diff) |
mm: split a folio in minimum folio order chunks
split_folio() and split_folio_to_list() assume order 0, to support
minorder for non-anonymous folios, we must expand these to check the
folio mapping order and use that.
Set new_order to be at least minimum folio order if it is set in
split_huge_page_to_list() so that we can maintain minimum folio order
requirement in the page cache.
Update the debugfs write files used for testing to ensure the order
is respected as well. We simply enforce the min order when a file
mapping is used.
Signed-off-by: Luis Chamberlain <[email protected]>
Signed-off-by: Pankaj Raghav <[email protected]>
Link: https://lore.kernel.org/r/[email protected] # folded fix
Link: https://lore.kernel.org/r/[email protected]
Tested-by: David Howells <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Zi Yan <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions