aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index fa9124322cd4..1380d8ace334 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -429,7 +429,7 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
429 atomic_dec(&inode->i_writecount); 429 atomic_dec(&inode->i_writecount);
430 mutex_lock(&mapping->i_mmap_mutex); 430 mutex_lock(&mapping->i_mmap_mutex);
431 if (tmp->vm_flags & VM_SHARED) 431 if (tmp->vm_flags & VM_SHARED)
432 mapping->i_mmap_writable++; 432 atomic_inc(&mapping->i_mmap_writable);
433 flush_dcache_mmap_lock(mapping); 433 flush_dcache_mmap_lock(mapping);
434 /* insert tmp into the share list, just after mpnt */ 434 /* insert tmp into the share list, just after mpnt */
435 if (unlikely(tmp->vm_flags & VM_NONLINEAR)) 435 if (unlikely(tmp->vm_flags & VM_NONLINEAR))