Lines Matching refs:io_tree

145 	BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops;  in btrfs_test_inode_set_ops()
760 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents() local
770 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
813 unlock_extent(io_tree, async_extent->start, in submit_compressed_extents()
1222 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); in cow_file_range_async()
1683 test_range_bit(&BTRFS_I(inode)->io_tree, start, end, in need_force_cow()
2149 return set_extent_delalloc(&BTRFS_I(inode)->io_tree, start, end, in btrfs_set_extent_delalloc()
2184 lock_extent_bits(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
2194 unlock_extent_cached(&BTRFS_I(inode)->io_tree, page_start, in btrfs_writepage_fixup_worker()
2224 unlock_extent_cached(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
2689 lock_extent_bits(&BTRFS_I(inode)->io_tree, lock_start, lock_end, in relink_extent_backref()
2818 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lock_start, lock_end, in relink_extent_backref()
3024 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_finish_ordered_io() local
3089 lock_extent_bits(io_tree, ordered_extent->file_offset, in btrfs_finish_ordered_io()
3093 ret = test_range_bit(io_tree, ordered_extent->file_offset, in btrfs_finish_ordered_io()
3102 clear_extent_bit(io_tree, ordered_extent->file_offset, in btrfs_finish_ordered_io()
3174 clear_extent_bit(&BTRFS_I(inode)->io_tree, in btrfs_finish_ordered_io()
3194 clear_extent_uptodate(io_tree, start, end, NULL); in btrfs_finish_ordered_io()
3325 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_readpage_end_io_hook() local
3337 test_range_bit(io_tree, start, end, EXTENT_NODATASUM, 1, NULL)) { in btrfs_readpage_end_io_hook()
3338 clear_extent_bits(io_tree, start, end, EXTENT_NODATASUM); in btrfs_readpage_end_io_hook()
3873 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_read_locked_inode()
4936 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_truncate_block() local
4987 lock_extent_bits(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
4992 unlock_extent_cached(io_tree, block_start, block_end, in btrfs_truncate_block()
5001 clear_extent_bit(&BTRFS_I(inode)->io_tree, block_start, block_end, in btrfs_truncate_block()
5008 unlock_extent_cached(io_tree, block_start, block_end, in btrfs_truncate_block()
5028 unlock_extent_cached(io_tree, block_start, block_end, &cached_state); in btrfs_truncate_block()
5096 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_cont_expand() local
5119 btrfs_lock_and_flush_ordered_range(io_tree, BTRFS_I(inode), hole_start, in btrfs_cont_expand()
5181 unlock_extent_cached(io_tree, hole_start, block_end - 1, &cached_state); in btrfs_cont_expand()
5317 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in evict_inode_truncate_pages() local
5358 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5359 while (!RB_EMPTY_ROOT(&io_tree->state)) { in evict_inode_truncate_pages()
5366 node = rb_first(&io_tree->state); in evict_inode_truncate_pages()
5371 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
5373 lock_extent_bits(io_tree, start, end, &cached_state); in evict_inode_truncate_pages()
5386 clear_extent_bit(io_tree, start, end, in evict_inode_truncate_pages()
5392 spin_lock(&io_tree->lock); in evict_inode_truncate_pages()
5394 spin_unlock(&io_tree->lock); in evict_inode_truncate_pages()
6696 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_create()
6929 struct extent_io_tree *io_tree = &inode->io_tree; in btrfs_get_extent() local
7105 set_extent_uptodate(io_tree, em->start, in btrfs_get_extent()
7177 delalloc_len = count_range_bits(&inode->io_tree, &delalloc_start, in btrfs_get_extent_fiemap()
7346 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in can_nocow_extent() local
7438 ret = test_range_bit(io_tree, offset, range_end, in can_nocow_extent()
7488 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct()
7510 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in lock_extent_direct()
7811 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_get_blocks_direct()
7828 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in btrfs_get_blocks_direct()
7840 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_get_blocks_direct()
7908 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in dio_read_error() local
7927 free_io_failure(failure_tree, io_tree, failrec); in dio_read_error()
7949 free_io_failure(failure_tree, io_tree, failrec); in dio_read_error()
7968 struct extent_io_tree *io_tree, *failure_tree; in btrfs_retry_endio_nocsum() local
7975 io_tree = &BTRFS_I(inode)->io_tree; in btrfs_retry_endio_nocsum()
7983 io_tree, done->start, bvec->bv_page, in btrfs_retry_endio_nocsum()
8054 struct extent_io_tree *io_tree, *failure_tree; in btrfs_retry_endio() local
8070 io_tree = &BTRFS_I(inode)->io_tree; in btrfs_retry_endio()
8080 failure_tree, io_tree, done->start, in btrfs_retry_endio()
8195 unlock_extent(&BTRFS_I(inode)->io_tree, dip->logical_offset, in btrfs_endio_direct_read()
8582 unlock_extent(&BTRFS_I(inode)->io_tree, file_offset, in btrfs_submit_direct()
8754 tree = &BTRFS_I(page->mapping->host)->io_tree; in btrfs_readpage()
8836 tree = &BTRFS_I(inode)->io_tree; in btrfs_invalidatepage()
8947 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_page_mkwrite() local
9002 lock_extent_bits(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
9012 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_page_mkwrite()
9038 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, end, in btrfs_page_mkwrite()
9045 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_page_mkwrite()
9072 unlock_extent_cached(io_tree, page_start, page_end, &cached_state); in btrfs_page_mkwrite()
9317 extent_io_tree_init(fs_info, &ei->io_tree, IO_TREE_INODE_IO, inode); in btrfs_alloc_inode()
9320 ei->io_tree.track_uptodate = true; in btrfs_alloc_inode()
10309 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_symlink()
10576 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_tmpfile()
10745 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_swap_activate() local
10805 lock_extent_bits(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()
10931 unlock_extent_cached(io_tree, 0, isize - 1, &cached_state); in btrfs_swap_activate()