Lines Matching refs:io_tree
449 &BTRFS_I(inode)->io_tree, in compress_file_range()
567 struct extent_io_tree *io_tree; in submit_compressed_extents() local
579 io_tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents()
587 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
605 extent_write_locked_range(io_tree, in submit_compressed_extents()
616 lock_extent(io_tree, async_extent->start, in submit_compressed_extents()
638 unlock_extent(io_tree, async_extent->start, in submit_compressed_extents()
691 &BTRFS_I(inode)->io_tree, in submit_compressed_extents()
797 &BTRFS_I(inode)->io_tree, in cow_file_range()
879 extent_clear_unlock_delalloc(inode, &BTRFS_I(inode)->io_tree, in cow_file_range()
953 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, EXTENT_LOCKED, in cow_file_range_async()
1216 extent_clear_unlock_delalloc(inode, &BTRFS_I(inode)->io_tree, in run_delalloc_nocow()
1517 return set_extent_delalloc(&BTRFS_I(inode)->io_tree, start, end, in btrfs_set_extent_delalloc()
1550 lock_extent_bits(&BTRFS_I(inode)->io_tree, page_start, page_end, 0, in btrfs_writepage_fixup_worker()
1559 unlock_extent_cached(&BTRFS_I(inode)->io_tree, page_start, in btrfs_writepage_fixup_worker()
1570 unlock_extent_cached(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_writepage_fixup_worker()
1700 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_finish_ordered_io() local
1731 lock_extent_bits(io_tree, ordered_extent->file_offset, in btrfs_finish_ordered_io()
1767 unlock_extent_cached(io_tree, ordered_extent->file_offset, in btrfs_finish_ordered_io()
1884 spin_lock(&BTRFS_I(inode)->io_tree.lock); in btrfs_io_failed_hook()
1885 state = find_first_extent_bit_state(&BTRFS_I(inode)->io_tree, in btrfs_io_failed_hook()
1890 spin_unlock(&BTRFS_I(inode)->io_tree.lock); in btrfs_io_failed_hook()
1913 ret = BTRFS_I(inode)->io_tree.ops->submit_bio_hook(inode, rw, bio, in btrfs_io_failed_hook()
1961 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_readpage_end_io_hook() local
1977 test_range_bit(io_tree, start, end, EXTENT_NODATASUM, 1, NULL)) { in btrfs_readpage_end_io_hook()
1978 clear_extent_bits(io_tree, start, end, EXTENT_NODATASUM, in btrfs_readpage_end_io_hook()
1987 ret = get_state_private(io_tree, start, &private); in btrfs_readpage_end_io_hook()
2559 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_read_locked_inode()
3504 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_truncate_page() local
3548 lock_extent_bits(io_tree, page_start, page_end, 0, &cached_state, in btrfs_truncate_page()
3554 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_truncate_page()
3563 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_truncate_page()
3570 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_truncate_page()
3584 unlock_extent_cached(io_tree, page_start, page_end, &cached_state, in btrfs_truncate_page()
3606 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_cont_expand() local
3624 lock_extent_bits(io_tree, hole_start, block_end - 1, 0, in btrfs_cont_expand()
3629 unlock_extent_cached(io_tree, hole_start, block_end - 1, in btrfs_cont_expand()
3678 unlock_extent_cached(io_tree, hole_start, block_end - 1, &cached_state, in btrfs_cont_expand()
4817 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_create()
5053 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_get_extent() local
5238 set_extent_uptodate(io_tree, em->start, in btrfs_get_extent()
5359 found = count_range_bits(&BTRFS_I(inode)->io_tree, &range_start, in btrfs_get_extent_fiemap()
5666 unlock_extent(&BTRFS_I(inode)->io_tree, start, in btrfs_get_blocks_direct()
5731 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, start + len - 1, in btrfs_get_blocks_direct()
5806 unlock_extent(&BTRFS_I(inode)->io_tree, dip->logical_offset, in btrfs_endio_direct_read()
5857 lock_extent_bits(&BTRFS_I(inode)->io_tree, ordered->file_offset, in btrfs_endio_direct_write()
5894 unlock_extent_cached(&BTRFS_I(inode)->io_tree, ordered->file_offset, in btrfs_endio_direct_write()
6273 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_direct_IO()
6284 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_direct_IO()
6297 ret = set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_direct_IO()
6301 clear_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_direct_IO()
6317 clear_extent_bit(&BTRFS_I(inode)->io_tree, offset, in btrfs_direct_IO()
6326 clear_extent_bit(&BTRFS_I(inode)->io_tree, offset + ret, in btrfs_direct_IO()
6345 tree = &BTRFS_I(page->mapping->host)->io_tree; in btrfs_readpage()
6359 tree = &BTRFS_I(page->mapping->host)->io_tree; in btrfs_writepage()
6368 tree = &BTRFS_I(mapping->host)->io_tree; in btrfs_writepages()
6377 tree = &BTRFS_I(mapping->host)->io_tree; in btrfs_readpages()
6387 tree = &BTRFS_I(page->mapping->host)->io_tree; in __btrfs_releasepage()
6423 tree = &BTRFS_I(page->mapping->host)->io_tree; in btrfs_invalidatepage()
6487 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_page_mkwrite() local
6520 lock_extent_bits(io_tree, page_start, page_end, 0, &cached_state, in btrfs_page_mkwrite()
6530 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_page_mkwrite()
6545 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, page_end, in btrfs_page_mkwrite()
6552 unlock_extent_cached(io_tree, page_start, page_end, in btrfs_page_mkwrite()
6578 unlock_extent_cached(io_tree, page_start, page_end, &cached_state, GFP_NOFS); in btrfs_page_mkwrite()
6789 extent_io_tree_init(&ei->io_tree, &inode->i_data, GFP_NOFS); in btrfs_alloc_inode()
7301 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_symlink()