Lines Matching defs:mapping

114 		struct file *file, struct address_space *mapping)
117 mapping_unmap_writable(mapping);
119 flush_dcache_mmap_lock(mapping);
120 vma_interval_tree_remove(vma, &mapping->i_mmap);
121 flush_dcache_mmap_unlock(mapping);
133 struct address_space *mapping = file->f_mapping;
134 i_mmap_lock_write(mapping);
135 __remove_shared_vm_struct(vma, file, mapping);
136 i_mmap_unlock_write(mapping);
238 goto out; /* mapping intersects with an existing non-brk vma. */
391 struct address_space *mapping)
394 mapping_allow_writable(mapping);
396 flush_dcache_mmap_lock(mapping);
397 vma_interval_tree_insert(vma, &mapping->i_mmap);
398 flush_dcache_mmap_unlock(mapping);
404 struct address_space *mapping = NULL;
415 mapping = vma->vm_file->f_mapping;
416 i_mmap_lock_write(mapping);
417 __vma_link_file(vma, mapping);
418 i_mmap_unlock_write(mapping);
449 vp->mapping = vma->vm_file->f_mapping;
478 i_mmap_lock_write(vp->mapping);
499 flush_dcache_mmap_lock(vp->mapping);
500 vma_interval_tree_remove(vp->vma, &vp->mapping->i_mmap);
503 &vp->mapping->i_mmap);
522 &vp->mapping->i_mmap);
523 vma_interval_tree_insert(vp->vma, &vp->mapping->i_mmap);
524 flush_dcache_mmap_unlock(vp->mapping);
528 __remove_shared_vm_struct(vp->remove, vp->file, vp->mapping);
531 vp->mapping);
550 i_mmap_unlock_write(vp->mapping);
818 * Given a mapping request (addr,end,vm_flags,file,pgoff,anon_name),
1376 * memory use of this mapping.
1553 /* Can the mapping track the dirty pages? */
1558 * We account for memory if it's a private writeable mapping,
2228 * IA64 has some horrid mapping rules: it can expand both up and down,
2632 * to MA_START and sets it up to remove the mapping(s). The @len will be
2708 * requested mapping. Account for the pages it would unmap.
2717 /* Unmap any existing mapping in the area */
2722 * Private writable mapping: check memory availability
2739 /* Attempt to expand an old mapping */
2928 /* Undo any partial mapping done by a device driver. */
3066 * unmaps a VMA mapping when the vma iterator is already in position.
3141 /* create a vma struct for an anonymous mapping */
3495 * the number of pages in mapping. Together with VM_DONTEXPAND
3496 * the size of vma should stay the same over the special mapping's
3600 * for as long as this mapping might exist.
3647 static void vm_lock_mapping(struct mm_struct *mm, struct address_space *mapping)
3649 if (!test_bit(AS_MM_ALL_LOCKS, &mapping->flags)) {
3659 if (test_and_set_bit(AS_MM_ALL_LOCKS, &mapping->flags))
3661 down_write_nest_lock(&mapping->i_mmap_rwsem, &mm->mmap_lock);
3683 * mapping->flags avoid to take the same lock twice, if more than one
3688 * - all hugetlbfs_i_mmap_rwsem_key locks (aka mapping->i_mmap_rwsem for
3689 * hugetlb mapping);
3781 static void vm_unlock_mapping(struct address_space *mapping)
3783 if (test_bit(AS_MM_ALL_LOCKS, &mapping->flags)) {
3788 i_mmap_unlock_write(mapping);
3790 &mapping->flags))