]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
txt-mm-khugepaged-write-lock-vma-while-collapsing-a-huge-page-fix-fix
authorSuren Baghdasaryan <surenb@google.com>
Sat, 4 Mar 2023 23:24:15 +0000 (15:24 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 28 Mar 2023 23:24:52 +0000 (16:24 -0700)
I missed vma_try_start_write() definition for CONFIG_PER_VMA_LOCK=n
configuration.

Link: https://lkml.kernel.org/r/CAJuCfpFjWhtzRE1X=J+_JjgJzNKhq-=JT8yTBSTHthwp0pqWZw@mail.gmail.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h

index 8a981f0085f25940901dabc69e11d5a0a8143d66..d7ed0a36d750c4f0b37e3a155bc1f9db446ea50a 100644 (file)
@@ -717,6 +717,8 @@ static inline bool vma_start_read(struct vm_area_struct *vma)
                { return false; }
 static inline void vma_end_read(struct vm_area_struct *vma) {}
 static inline void vma_start_write(struct vm_area_struct *vma) {}
+static inline bool vma_try_start_write(struct vm_area_struct *vma)
+               { return true; }
 static inline void vma_assert_write_locked(struct vm_area_struct *vma) {}
 
 #endif /* CONFIG_PER_VMA_LOCK */