Lines Matching refs:mapping
567 struct address_space *mapping = vma->vm_file->f_mapping; in setup_vma_to_mm() local
569 i_mmap_lock_write(mapping); in setup_vma_to_mm()
570 flush_dcache_mmap_lock(mapping); in setup_vma_to_mm()
571 vma_interval_tree_insert(vma, &mapping->i_mmap); in setup_vma_to_mm()
572 flush_dcache_mmap_unlock(mapping); in setup_vma_to_mm()
573 i_mmap_unlock_write(mapping); in setup_vma_to_mm()
582 struct address_space *mapping; in cleanup_vma_from_mm() local
583 mapping = vma->vm_file->f_mapping; in cleanup_vma_from_mm()
585 i_mmap_lock_write(mapping); in cleanup_vma_from_mm()
586 flush_dcache_mmap_lock(mapping); in cleanup_vma_from_mm()
587 vma_interval_tree_remove(vma, &mapping->i_mmap); in cleanup_vma_from_mm()
588 flush_dcache_mmap_unlock(mapping); in cleanup_vma_from_mm()
589 i_mmap_unlock_write(mapping); in cleanup_vma_from_mm()