Home
last modified time | relevance | path

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

/Linux-v4.19/fs/btrfs/
Dinode.c143 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_test_inode_set_ops()
716 struct extent_io_tree *io_tree; in submit_compressed_extents() local
725 io_tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents()
733 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
768 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
779 unlock_extent(io_tree, async_extent->start, in submit_compressed_extents()
850 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents()
1186 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, EXTENT_LOCKED, in cow_file_range_async()
1572 test_range_bit(&BTRFS_I(inode)->io_tree, start, end, in need_force_cow()
2061 return set_extent_delalloc(&BTRFS_I(inode)->io_tree, start, end, in btrfs_set_extent_delalloc()
[all …]
Dfile.c493 ret = set_extent_bit(&inode->io_tree, search_start, in btrfs_find_new_delalloc_bytes()
1483 lock_extent_bits(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1490 unlock_extent_cached(&inode->io_tree, start_pos, in lock_and_cleanup_extent_if_need()
1503 clear_extent_bit(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1541 lock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1547 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1563 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1745 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in btrfs_buffered_write()
1764 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
2367 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
[all …]
Ddisk-io.c322 static int verify_parent_transid(struct extent_io_tree *io_tree, in verify_parent_transid() argument
341 lock_extent_bits(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid()
365 unlock_extent_cached(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid()
473 struct extent_io_tree *io_tree; in btree_read_extent_buffer_pages() local
481 io_tree = &BTRFS_I(fs_info->btree_inode)->io_tree; in btree_read_extent_buffer_pages()
483 ret = read_extent_buffer_pages(io_tree, eb, WAIT_COMPLETE, in btree_read_extent_buffer_pages()
486 if (verify_parent_transid(io_tree, eb, in btree_read_extent_buffer_pages()
947 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_readpage()
963 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_invalidatepage()
1010 read_extent_buffer_pages(&BTRFS_I(btree_inode)->io_tree, in readahead_tree_block()
[all …]
Dextent_io.c1733 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, clear_bits, 1, 0, in extent_clear_unlock_delalloc()
1930 struct extent_io_tree *io_tree, in free_io_failure() argument
1943 ret = clear_extent_bits(io_tree, rec->start, in free_io_failure()
2073 struct extent_io_tree *io_tree, u64 start, in clean_io_failure() argument
2104 spin_lock(&io_tree->lock); in clean_io_failure()
2105 state = find_first_extent_bit_state(io_tree, in clean_io_failure()
2108 spin_unlock(&io_tree->lock); in clean_io_failure()
2122 free_io_failure(failure_tree, io_tree, failrec); in clean_io_failure()
2168 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in btrfs_get_io_failure_record()
2359 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in bio_readpage_error()
[all …]
Dioctl.c999 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in check_defrag_in_cache() local
1016 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache()
1093 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local
1110 lock_extent_bits(io_tree, start, end, &cached); in defrag_lookup_extent()
1112 unlock_extent_cached(io_tree, start, end, &cached); in defrag_lookup_extent()
1244 tree = &BTRFS_I(inode)->io_tree; in cluster_pages_for_defrag()
1318 lock_extent_bits(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1320 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, in cluster_pages_for_defrag()
1335 set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1, in cluster_pages_for_defrag()
1338 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
[all …]
Dbtrfs_inode.h55 struct extent_io_tree io_tree; member
Dextent_io.h509 struct extent_io_tree *io_tree, u64 start,
546 struct extent_io_tree *io_tree,
Drelocation.c1667 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
1674 unlock_extent(&BTRFS_I(inode)->io_tree, in replace_file_extents()
2094 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache()
2096 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in invalidate_extent_cache()
3081 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in prealloc_file_extent_cluster()
3090 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in prealloc_file_extent_cluster()
3124 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping()
3135 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping()
3219 lock_extent(&BTRFS_I(inode)->io_tree, page_start, page_end); in relocate_file_extent_cluster()
3225 set_extent_bits(&BTRFS_I(inode)->io_tree, in relocate_file_extent_cluster()
[all …]
Dfile-item.c158 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in __btrfs_lookup_bio_sums() local
238 set_extent_bits(io_tree, offset, in __btrfs_lookup_bio_sums()
Dcompression.c251 tree = &BTRFS_I(inode)->io_tree; in end_compressed_bio_write()
427 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages()
548 tree = &BTRFS_I(inode)->io_tree; in btrfs_submit_compressed_read()
Dfree-space-cache.c978 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item()
990 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item()
1089 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache()
1110 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in cleanup_write_cache_enospc()
1246 lock_extent_bits(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
1301 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in __btrfs_write_out_cache()
Dqgroup.c3021 ret = set_record_extent_bits(&BTRFS_I(inode)->io_tree, start, in btrfs_qgroup_reserve_data()
3040 clear_extent_bit(&BTRFS_I(inode)->io_tree, unode->val, in btrfs_qgroup_reserve_data()
3114 ret = clear_record_extent_bits(&BTRFS_I(inode)->io_tree, start, in __btrfs_qgroup_release_data()
3345 ret = clear_record_extent_bits(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in btrfs_qgroup_check_reserved_leak()
/Linux-v4.19/fs/btrfs/tests/
Dinode-tests.c987 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1055 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1090 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()
1106 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()