iomap: use an unsigned type for IOMAP_DIO_* defines
[platform/kernel/linux-starfive.git] / kernel / fork.c
index b85814e..d2e12b6 100644 (file)
@@ -686,6 +686,7 @@ static __latent_entropy int dup_mmap(struct mm_struct *mm,
        for_each_vma(old_vmi, mpnt) {
                struct file *file;
 
+               vma_start_write(mpnt);
                if (mpnt->vm_flags & VM_DONTCOPY) {
                        vm_stat_account(mm, mpnt->vm_flags, -vma_pages(mpnt));
                        continue;