]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: introduce mod_vm_flags_nolock
authorSuren Baghdasaryan <surenb@google.com>
Tue, 8 Nov 2022 19:15:56 +0000 (19:15 +0000)
committerSuren Baghdasaryan <surenb@google.com>
Wed, 23 Nov 2022 02:09:47 +0000 (02:09 +0000)
commitc249758008406f1715fc9a0c8774f513aacbb456
tree3987c3a287fcc6c6935d854651099d5b60ccc438
parent6f6d8152e277e1e1c729cb59fdf8f429ff2bd9d0
mm: introduce mod_vm_flags_nolock

In cases when VMA flags are modified after VMA was isolated and mmap_lock
was downgraded, flags modifications do not require per-VMA locking and
an attempt to lock the VMA would result in an assertion because mmap
write lock is not held.
Introduce mod_vm_flags_nolock to be used in such situation.

Signed-off-by: Suren Baghdasaryan <surenb@google.com>
include/linux/mm.h