diff options
author | Matthew Wilcox (Oracle) <[email protected]> | 2020-12-14 19:12:59 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-12-15 12:13:45 -0800 |
commit | 0060ef3b4e6dd1410da164d48a595eadb2fb02f7 (patch) | |
tree | e8ef6cbed557e1ca048ff65f6255324c652d0677 /lib/mpi/mpi-cmp.c | |
parent | 5e5dda81a0dfb82de1757ab878d9ffd2339c9b2a (diff) |
mm: support THPs in zero_user_segments
We can only kmap() one subpage of a THP at a time, so loop over all
relevant subpages, skipping ones which don't need to be zeroed. This is
too large to inline when THPs are enabled and we actually need highmem, so
put it in highmem.c.
[[email protected]: start1 was allowed to be less than start2]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Cc: Yang Shi <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Zi Yan <[email protected]>
Cc: Song Liu <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Naresh Kamboju <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions