/linux-4.4.14/fs/btrfs/ |
D | inode.c | 115 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_test_inode_set_ops() 683 struct extent_io_tree *io_tree; in submit_compressed_extents() local 692 io_tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents() 700 lock_extent(io_tree, async_extent->start, in submit_compressed_extents() 720 extent_write_locked_range(io_tree, in submit_compressed_extents() 733 lock_extent(io_tree, async_extent->start, in submit_compressed_extents() 744 unlock_extent(io_tree, async_extent->start, in submit_compressed_extents() 838 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents() 1137 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, EXTENT_LOCKED, in cow_file_range_async() 1518 test_range_bit(&BTRFS_I(inode)->io_tree, start, end, in need_force_cow() [all …]
|
D | compression.c | 287 tree = &BTRFS_I(inode)->io_tree; in end_compressed_bio_write() 336 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_submit_compressed_write() local 376 ret = io_tree->ops->merge_bio_hook(WRITE, page, 0, in btrfs_submit_compressed_write() 462 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages() 585 tree = &BTRFS_I(inode)->io_tree; in btrfs_submit_compressed_read()
|
D | file.c | 1396 lock_extent_bits(&BTRFS_I(inode)->io_tree, in lock_and_cleanup_extent_if_need() 1403 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in lock_and_cleanup_extent_if_need() 1417 clear_extent_bit(&BTRFS_I(inode)->io_tree, start_pos, in lock_and_cleanup_extent_if_need() 1453 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow() 1459 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow() 1474 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow() 1645 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in __btrfs_buffered_write() 1662 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in __btrfs_buffered_write() 2400 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole() 2419 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_punch_hole() [all …]
|
D | disk-io.c | 345 static int verify_parent_transid(struct extent_io_tree *io_tree, in verify_parent_transid() argument 364 lock_extent_bits(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid() 388 unlock_extent_cached(io_tree, eb->start, eb->start + eb->len - 1, in verify_parent_transid() 441 struct extent_io_tree *io_tree; in btree_read_extent_buffer_pages() local 449 io_tree = &BTRFS_I(root->fs_info->btree_inode)->io_tree; in btree_read_extent_buffer_pages() 451 ret = read_extent_buffer_pages(io_tree, eb, start, in btree_read_extent_buffer_pages() 455 if (!verify_parent_transid(io_tree, eb, in btree_read_extent_buffer_pages() 1025 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_readpage() 1041 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_invalidatepage() 1088 read_extent_buffer_pages(&BTRFS_I(btree_inode)->io_tree, in readahead_tree_block() [all …]
|
D | btrfs_inode.h | 80 struct extent_io_tree io_tree; member
|
D | ioctl.c | 888 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in check_defrag_in_cache() local 905 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache() 982 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local 999 lock_extent_bits(io_tree, start, end, 0, &cached); in defrag_lookup_extent() 1001 unlock_extent_cached(io_tree, start, end, &cached, GFP_NOFS); in defrag_lookup_extent() 1132 tree = &BTRFS_I(inode)->io_tree; in cluster_pages_for_defrag() 1206 lock_extent_bits(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag() 1208 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, in cluster_pages_for_defrag() 1223 set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1, in cluster_pages_for_defrag() 1226 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag() [all …]
|
D | scrub.c | 747 ret = set_extent_bits(&BTRFS_I(inode)->io_tree, offset, end, in scrub_fixup_readpage() 757 ret = extent_read_full_page(&BTRFS_I(inode)->io_tree, page, in scrub_fixup_readpage() 762 corrected = !test_range_bit(&BTRFS_I(inode)->io_tree, offset, in scrub_fixup_readpage() 765 clear_extent_bits(&BTRFS_I(inode)->io_tree, offset, end, in scrub_fixup_readpage() 4207 struct extent_io_tree *io_tree; in check_extent_to_block() local 4212 io_tree = &BTRFS_I(inode)->io_tree; in check_extent_to_block() 4214 lock_extent_bits(io_tree, lockstart, lockend, 0, &cached_state); in check_extent_to_block() 4241 unlock_extent_cached(io_tree, lockstart, lockend, &cached_state, in check_extent_to_block() 4254 struct extent_io_tree *io_tree; in copy_nocow_pages_for_inode() local 4288 io_tree = &BTRFS_I(inode)->io_tree; in copy_nocow_pages_for_inode() [all …]
|
D | file-item.c | 168 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in __btrfs_lookup_bio_sums() local 245 set_extent_bits(io_tree, offset, in __btrfs_lookup_bio_sums()
|
D | relocation.c | 1690 ret = try_lock_extent(&BTRFS_I(inode)->io_tree, 1697 unlock_extent(&BTRFS_I(inode)->io_tree, 2083 lock_extent(&BTRFS_I(inode)->io_tree, start, end); 2085 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); 3047 lock_extent(&BTRFS_I(inode)->io_tree, start, end); 3052 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); 3084 lock_extent(&BTRFS_I(inode)->io_tree, start, end); 3095 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); 3175 lock_extent(&BTRFS_I(inode)->io_tree, page_start, page_end); 3181 set_extent_bits(&BTRFS_I(inode)->io_tree, [all …]
|
D | extent_io.c | 1828 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in extent_clear_unlock_delalloc() 2074 ret = clear_extent_bits(&BTRFS_I(inode)->io_tree, rec->start, in free_io_failure() 2214 spin_lock(&BTRFS_I(inode)->io_tree.lock); in clean_io_failure() 2215 state = find_first_extent_bit_state(&BTRFS_I(inode)->io_tree, in clean_io_failure() 2218 spin_unlock(&BTRFS_I(inode)->io_tree.lock); in clean_io_failure() 2278 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in btrfs_get_io_failure_record() 2471 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in bio_readpage_error() 2525 tree = &BTRFS_I(page->mapping->host)->io_tree; in end_extent_writepage() 2637 tree = &BTRFS_I(inode)->io_tree; in end_bio_extent_readpage() 3854 struct extent_io_tree *tree = &BTRFS_I(fs_info->btree_inode)->io_tree; in write_one_eb() [all …]
|
D | free-space-cache.c | 997 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item() 1010 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item() 1112 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache() 1138 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in cleanup_write_cache_enospc() 1263 lock_extent_bits(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache() 1317 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in __btrfs_write_out_cache()
|
D | qgroup.c | 2525 ret = set_record_extent_bits(&BTRFS_I(inode)->io_tree, start, in btrfs_qgroup_reserve_data() 2544 clear_extent_bit(&BTRFS_I(inode)->io_tree, unode->val, in btrfs_qgroup_reserve_data() 2563 ret = clear_record_extent_bits(&BTRFS_I(inode)->io_tree, start, in __btrfs_qgroup_release_data() 2671 ret = clear_record_extent_bits(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in btrfs_qgroup_check_reserved_leak()
|
/linux-4.4.14/fs/btrfs/tests/ |
D | inode-tests.c | 972 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting() 1043 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, in test_extent_accounting() 1079 ret = clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting() 1096 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, (u64)-1, in test_extent_accounting()
|