diff options
Diffstat (limited to 'mm/fremap.c')
-rw-r--r-- | mm/fremap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/fremap.c b/mm/fremap.c index 72b8fa361433..11ef7ec40d13 100644 --- a/mm/fremap.c +++ b/mm/fremap.c | |||
@@ -238,13 +238,13 @@ get_write_lock: | |||
238 | } | 238 | } |
239 | goto out_freed; | 239 | goto out_freed; |
240 | } | 240 | } |
241 | mutex_lock(&mapping->i_mmap_mutex); | 241 | i_mmap_lock_write(mapping); |
242 | flush_dcache_mmap_lock(mapping); | 242 | flush_dcache_mmap_lock(mapping); |
243 | vma->vm_flags |= VM_NONLINEAR; | 243 | vma->vm_flags |= VM_NONLINEAR; |
244 | vma_interval_tree_remove(vma, &mapping->i_mmap); | 244 | vma_interval_tree_remove(vma, &mapping->i_mmap); |
245 | vma_nonlinear_insert(vma, &mapping->i_mmap_nonlinear); | 245 | vma_nonlinear_insert(vma, &mapping->i_mmap_nonlinear); |
246 | flush_dcache_mmap_unlock(mapping); | 246 | flush_dcache_mmap_unlock(mapping); |
247 | mutex_unlock(&mapping->i_mmap_mutex); | 247 | i_mmap_unlock_write(mapping); |
248 | } | 248 | } |
249 | 249 | ||
250 | if (vma->vm_flags & VM_LOCKED) { | 250 | if (vma->vm_flags & VM_LOCKED) { |