Home
last modified time | relevance | path

Searched refs:io_tree (Results 1 – 18 of 18) sorted by relevance

/linux/fs/btrfs/
A Ddirect-io.c39 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in lock_extent_direct() local
48 lock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
53 if (!try_lock_extent(io_tree, lockstart, lockend, in lock_extent_direct()
59 lock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
81 unlock_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
134 unlock_dio_extent(io_tree, lockstart, lockend, cached_state); in lock_extent_direct()
578 clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_dio_iomap_begin()
583 unlock_dio_extent(&BTRFS_I(inode)->io_tree, start + len, in btrfs_dio_iomap_begin()
618 unlock_dio_extent(&BTRFS_I(inode)->io_tree, pos, in btrfs_dio_iomap_end()
630 unlock_dio_extent(&BTRFS_I(inode)->io_tree, pos, in btrfs_dio_iomap_end()
[all …]
A Dinode.c1180 struct extent_io_tree *io_tree = &inode->io_tree; in submit_one_async_extent() local
1793 struct extent_io_tree *io_tree = &inode->io_tree; in fallback_to_cow() local
3056 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_finish_one_ordered() local
4727 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_truncate_block() local
4923 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_cont_expand() local
5148 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in evict_inode_truncate_pages() local
7045 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in can_nocow_extent() local
9033 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read_inline() local
9189 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read_regular() local
9251 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_encoded_read() local
[all …]
A Ddefrag.c750 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local
782 lock_extent(io_tree, start, end, &cached); in defrag_lookup_extent()
785 unlock_extent(io_tree, start, end, &cached); in defrag_lookup_extent()
897 lock_extent(&inode->io_tree, page_start, page_end, &cached_state); in defrag_prepare_one_folio()
899 unlock_extent(&inode->io_tree, page_start, page_end, in defrag_prepare_one_folio()
1030 if (test_range_bit_exists(&inode->io_tree, cur, cur + range_len - 1, in defrag_collect_targets()
1176 clear_extent_bit(&inode->io_tree, start, start + len - 1, in defrag_one_locked_target()
1179 set_extent_bit(&inode->io_tree, start, start + len - 1, in defrag_one_locked_target()
1229 lock_extent(&inode->io_tree, start_index << PAGE_SHIFT, in defrag_one_range()
1257 unlock_extent(&inode->io_tree, start_index << PAGE_SHIFT, in defrag_one_range()
A Dfile.c157 clear_extent_bit(&inode->io_tree, start_pos, end_of_last_block, in btrfs_dirty_pages()
1009 if (!try_lock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1028 unlock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1404 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
1904 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_page_mkwrite() local
1962 lock_extent(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
2001 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, end, in btrfs_page_mkwrite()
2240 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
2756 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole()
3027 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_zero_range()
[all …]
A Dreflink.c98 clear_extent_bit(&inode->io_tree, file_offset, range_end, in copy_inline_to_page()
649 lock_extent(&BTRFS_I(dst)->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same_range()
651 unlock_extent(&BTRFS_I(dst)->io_tree, dst_loff, end, &cached_state); in btrfs_extent_same_range()
750 lock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state); in btrfs_clone_files()
752 unlock_extent(&BTRFS_I(inode)->io_tree, destoff, end, &cached_state); in btrfs_clone_files()
A Drelocation.c1008 ret = try_lock_extent(&inode->io_tree, key.offset, in replace_file_extents()
1016 unlock_extent(&inode->io_tree, key.offset, end, in replace_file_extents()
1481 lock_extent(&inode->io_tree, start, end, &cached_state); in invalidate_extent_cache()
1483 unlock_extent(&inode->io_tree, start, end, &cached_state); in invalidate_extent_cache()
2786 clear_extent_bits(&inode->io_tree, i_size, in prealloc_file_extent_cluster()
2818 lock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster()
2824 unlock_extent(&inode->io_tree, start, end, &cached_state); in prealloc_file_extent_cluster()
2857 lock_extent(&inode->io_tree, start, end, &cached_state); in setup_relocation_extent_mapping()
2859 unlock_extent(&inode->io_tree, start, end, &cached_state); in setup_relocation_extent_mapping()
2981 clear_extent_bit(&BTRFS_I(inode)->io_tree, in relocate_one_folio()
[all …]
A Dordered-data.c1163 lock_extent(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range()
1176 unlock_extent(&inode->io_tree, start, end, cachedp); in btrfs_lock_and_flush_ordered_range()
1194 if (!try_lock_extent(&inode->io_tree, start, end, cached_state)) in btrfs_try_lock_ordered_range()
1202 unlock_extent(&inode->io_tree, start, end, cached_state); in btrfs_try_lock_ordered_range()
A Dfiemap.c664 lock_extent(&inode->io_tree, range_start, range_end, &cached_state); in extent_fiemap()
844 unlock_extent(&inode->io_tree, range_start, range_end, &cached_state); in extent_fiemap()
A Dextent_io.c317 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in find_lock_delalloc_range()
409 clear_extent_bit(&inode->io_tree, start, end, clear_bits, cached); in extent_clear_unlock_delalloc()
932 unlock_extent(&BTRFS_I(inode)->io_tree, start, start + len - 1, &cached_state); in __get_extent_map()
1202 unlock_extent(&inode->io_tree, found_start, in writepage_delalloc()
2364 struct extent_io_tree *io_tree = &inode->io_tree; in try_release_extent_mapping() local
2383 if (test_range_bit_exists(io_tree, em->start, in try_release_extent_mapping()
2432 return try_release_extent_state(io_tree, folio, mask); in try_release_extent_mapping()
A Dfree-space-cache.c343 lock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache()
355 unlock_extent(&inode->io_tree, 0, (u64)-1, &cached_state); in btrfs_truncate_free_space_cache()
1165 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item()
1177 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item()
1273 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache()
1294 unlock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in cleanup_write_cache_enospc()
1419 lock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
1475 unlock_extent(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
A Dbtrfs_inode.h163 struct extent_io_tree io_tree; member
A Dextent_map.c1062 lock_extent(&inode->io_tree, start, start + len - 1, NULL); in split_extent_map()
1115 unlock_extent(&inode->io_tree, start, start + len - 1, NULL); in split_extent_map()
A Dqgroup.c4144 clear_ret = clear_extent_bits(&inode->io_tree, entry_start, in qgroup_unreserve_range()
4240 ret = set_record_extent_bits(&inode->io_tree, start, in qgroup_reserve_data()
4334 ret = clear_record_extent_bits(&inode->io_tree, free_start, in qgroup_free_reserved_data()
4360 return clear_record_extent_bits(&inode->io_tree, start, in __btrfs_qgroup_release_data()
4370 ret = clear_record_extent_bits(&inode->io_tree, start, start + len -1, in __btrfs_qgroup_release_data()
4619 ret = clear_record_extent_bits(&inode->io_tree, 0, (u64)-1, in btrfs_qgroup_check_reserved_leak()
A Dfile-item.c437 set_extent_bit(&inode->io_tree, file_offset, in btrfs_lookup_bio_sums()
A Dcompression.c431 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages()
A Ddisk-io.c536 tree = &folio_to_inode(folio)->io_tree; in btree_invalidate_folio()
1934 extent_io_tree_init(fs_info, &BTRFS_I(inode)->io_tree, in btrfs_init_btree_inode()
/linux/fs/btrfs/tests/
A Dinode-tests.c952 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1020 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1055 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()
1071 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()
A Dextent-io-tests.c146 tmp = &BTRFS_I(inode)->io_tree; in test_find_delalloc()

Completed in 198 milliseconds