Home
last modified time | relevance | path

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

/linux-4.19.296/fs/btrfs/
Dinode.c154 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_test_inode_set_ops()
756 struct extent_io_tree *io_tree; in submit_compressed_extents() local
765 io_tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents()
773 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
808 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
819 unlock_extent(io_tree, async_extent->start, in submit_compressed_extents()
890 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents()
1243 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, EXTENT_LOCKED, in cow_file_range_async()
1629 test_range_bit(&BTRFS_I(inode)->io_tree, start, end, in need_force_cow()
2120 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()
538 clear_extent_bit(&BTRFS_I(inode)->io_tree, start_pos, end_of_last_block, in btrfs_dirty_pages()
1491 lock_extent_bits(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1498 unlock_extent_cached(&inode->io_tree, start_pos, in lock_and_cleanup_extent_if_need()
1558 lock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1564 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1580 unlock_extent(&inode->io_tree, lockstart, lockend); in check_can_nocow()
1771 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in btrfs_buffered_write()
1792 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_buffered_write()
2453 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole_lock_range()
[all …]
Ddisk-io.c323 static int verify_parent_transid(struct extent_io_tree *io_tree, in verify_parent_transid() argument
342 lock_extent_bits(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid()
366 unlock_extent_cached(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid()
484 struct extent_io_tree *io_tree; in btree_read_extent_buffer_pages() local
491 io_tree = &BTRFS_I(fs_info->btree_inode)->io_tree; in btree_read_extent_buffer_pages()
494 ret = read_extent_buffer_pages(io_tree, eb, WAIT_COMPLETE, in btree_read_extent_buffer_pages()
497 if (verify_parent_transid(io_tree, eb, in btree_read_extent_buffer_pages()
949 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_readpage()
965 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_invalidatepage()
1014 ret = read_extent_buffer_pages(&BTRFS_I(btree_inode)->io_tree, buf, in readahead_tree_block()
[all …]
Dextent_io.c1788 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, clear_bits, 1, 0, in extent_clear_unlock_delalloc()
1985 struct extent_io_tree *io_tree, in free_io_failure() argument
1998 ret = clear_extent_bits(io_tree, rec->start, in free_io_failure()
2128 struct extent_io_tree *io_tree, u64 start, in clean_io_failure() argument
2159 spin_lock(&io_tree->lock); in clean_io_failure()
2160 state = find_first_extent_bit_state(io_tree, in clean_io_failure()
2163 spin_unlock(&io_tree->lock); in clean_io_failure()
2177 free_io_failure(failure_tree, io_tree, failrec); in clean_io_failure()
2223 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in btrfs_get_io_failure_record()
2414 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in bio_readpage_error()
[all …]
Dbtrfs_inode.h56 struct extent_io_tree io_tree; member
Dioctl.c1030 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in check_defrag_in_cache() local
1047 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache()
1124 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local
1141 lock_extent_bits(io_tree, start, end, &cached); in defrag_lookup_extent()
1143 unlock_extent_cached(io_tree, start, end, &cached); in defrag_lookup_extent()
1275 tree = &BTRFS_I(inode)->io_tree; in cluster_pages_for_defrag()
1349 lock_extent_bits(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
1351 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, in cluster_pages_for_defrag()
1365 set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1, in cluster_pages_for_defrag()
1368 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag()
[all …]
Dextent_io.h504 struct extent_io_tree *io_tree, u64 start,
541 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()
3095 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in prealloc_file_extent_cluster()
3104 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in prealloc_file_extent_cluster()
3138 lock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping()
3149 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in setup_extent_mapping()
3235 lock_extent(&BTRFS_I(inode)->io_tree, page_start, page_end); in relocate_file_extent_cluster()
3241 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.c267 tree = &BTRFS_I(inode)->io_tree; in end_compressed_bio_write()
442 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages()
563 tree = &BTRFS_I(inode)->io_tree; in btrfs_submit_compressed_read()
Dfree-space-cache.c1018 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item()
1030 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item()
1129 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache()
1150 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in cleanup_write_cache_enospc()
1285 lock_extent_bits(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache()
1341 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in __btrfs_write_out_cache()
Dqgroup.c3096 ret = set_record_extent_bits(&BTRFS_I(inode)->io_tree, start, in btrfs_qgroup_reserve_data()
3115 clear_extent_bit(&BTRFS_I(inode)->io_tree, unode->val, in btrfs_qgroup_reserve_data()
3164 ret = clear_record_extent_bits(&BTRFS_I(inode)->io_tree, in qgroup_free_reserved_data()
3196 ret = clear_record_extent_bits(&BTRFS_I(inode)->io_tree, start, in __btrfs_qgroup_release_data()
3427 ret = clear_record_extent_bits(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in btrfs_qgroup_check_reserved_leak()
/linux-4.19.296/fs/btrfs/tests/
Dinode-tests.c988 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1056 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting()
1091 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()
1107 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()