]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mlock: Use maple state in apply_mlockall_flags()
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 27 Apr 2022 16:46:04 +0000 (12:46 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 27 Apr 2022 16:49:54 +0000 (12:49 -0400)
commit62c50b9683d10ccaa0b689459efaa41794db129b
tree5a222712814fd449ee892d26d333e9d6e7259945
parent09a30b09a9e7a79fddeb05c309103aacf82d0a1e
mm/mlock:  Use maple state in apply_mlockall_flags()

The vma iterator is for simple cases.  Since mlock_fixup() can cause the
tree to change and thus requires the maple state to be reset,
apply_mlockall_flags() is not a simple case.  Use a maple state and
call mas_pause() instead.

Fixes: 0d43186b36c1 (mm/mlock: use vma iterator and instead of vma
linked list)
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
mm/mlock.c