mm/gup, udmabuf: Complete memfd_pin_folios() for pinning memfd folios

JIRA: https://issues.redhat.com/browse/RHEL-89519
MR: !6826 (merged)
Depends: !6414 (merged)
Tested: The udmabuf selftest was run successfully without failure on the patched kernel with the appropriated hugetlb setting.

This MR completes the backport of the patch series "mm/gup: Introduce memfd_pin_folios() for pinning memfd folios" and all the associated and relevant fix commits as well as other patches to reduce merge conflicts. It also backports the updated udmabuf selftest patches.

This is needed to support the AMD proposed solution to enable memory cgroup to limit memory consumption of GPU heavy applications.

Signed-off-by: Waiman Long longman@redhat.com

Edited by Waiman Long

Merge request reports

Loading