Lines Matching refs:mapping

246 	struct address_space *mapping = file->f_mapping;  in hugetlbfs_read_iter()  local
247 struct inode *inode = mapping->host; in hugetlbfs_read_iter()
274 page = find_lock_page(mapping, index); in hugetlbfs_read_iter()
305 struct address_space *mapping, in hugetlbfs_write_begin() argument
312 static int hugetlbfs_write_end(struct file *file, struct address_space *mapping, in hugetlbfs_write_end() argument
353 struct address_space *mapping = &inode->i_data; in remove_inode_hugepages() local
377 if (!pagevec_lookup(&pvec, mapping, next, lookup_nr)) in remove_inode_hugepages()
395 mapping, next, 0); in remove_inode_hugepages()
496 struct address_space *mapping = inode->i_mapping; in hugetlb_vmtruncate() local
503 i_mmap_lock_write(mapping); in hugetlb_vmtruncate()
504 if (!RB_EMPTY_ROOT(&mapping->i_mmap)) in hugetlb_vmtruncate()
505 hugetlb_vmdelete_list(&mapping->i_mmap, pgoff, 0); in hugetlb_vmtruncate()
506 i_mmap_unlock_write(mapping); in hugetlb_vmtruncate()
525 struct address_space *mapping = inode->i_mapping; in hugetlbfs_punch_hole() local
528 i_mmap_lock_write(mapping); in hugetlbfs_punch_hole()
529 if (!RB_EMPTY_ROOT(&mapping->i_mmap)) in hugetlbfs_punch_hole()
530 hugetlb_vmdelete_list(&mapping->i_mmap, in hugetlbfs_punch_hole()
533 i_mmap_unlock_write(mapping); in hugetlbfs_punch_hole()
545 struct address_space *mapping = inode->i_mapping; in hugetlbfs_fallocate() local
612 hash = hugetlb_fault_mutex_hash(h, mm, &pseudo_vma, mapping, in hugetlbfs_fallocate()
617 page = find_get_page(mapping, index); in hugetlbfs_fallocate()
635 error = huge_add_to_page_cache(page, mapping, index); in hugetlbfs_fallocate()
839 static int hugetlbfs_migrate_page(struct address_space *mapping, in hugetlbfs_migrate_page() argument
845 rc = migrate_huge_page_move_mapping(mapping, newpage, page); in hugetlbfs_migrate_page()