summaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-06-17 13:20:30 +0000
committerRalf Baechle <ralf@linux-mips.org>1997-06-17 13:20:30 +0000
commit7acb77a6e7bddd4c4c5aa975bbf976927c013798 (patch)
tree4139829ec6edb85f73774bb95cdec376758bfc73 /mm/mmap.c
parent64d58d4c8cd6a89ee218301ec0dc0ebfec91a4db (diff)
Merge with 2.1.43.
Diffstat (limited to 'mm/mmap.c')
-rw-r--r--mm/mmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index 13b19bec0..af8cd0a4a 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -409,7 +409,7 @@ static void unmap_fixup(struct vm_area_struct *area,
mpnt->vm_offset += (end - area->vm_start);
mpnt->vm_start = end;
if (mpnt->vm_inode)
- mpnt->vm_inode->i_count++;
+ atomic_inc(&mpnt->vm_inode->i_count);
if (mpnt->vm_ops && mpnt->vm_ops->open)
mpnt->vm_ops->open(mpnt);
area->vm_end = addr; /* Truncate area */
@@ -646,7 +646,7 @@ void merge_segments (struct mm_struct * mm, unsigned long start_addr, unsigned l
}
remove_shared_vm_struct(mpnt);
if (mpnt->vm_inode)
- mpnt->vm_inode->i_count--;
+ atomic_dec(&mpnt->vm_inode->i_count);
kmem_cache_free(vm_area_cachep, mpnt);
mpnt = prev;
}