/linux-4.1.27/fs/btrfs/ |
D | inode.c | 115 BTRFS_I(inode)->io_tree.ops = &btrfs_extent_io_ops; in btrfs_test_inode_set_ops() 676 struct extent_io_tree *io_tree; in submit_compressed_extents() local 685 io_tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents() 693 lock_extent(io_tree, async_extent->start, in submit_compressed_extents() 713 extent_write_locked_range(io_tree, in submit_compressed_extents() 726 lock_extent(io_tree, async_extent->start, in submit_compressed_extents() 737 unlock_extent(io_tree, async_extent->start, in submit_compressed_extents() 831 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in submit_compressed_extents() 1127 clear_extent_bit(&BTRFS_I(inode)->io_tree, start, end, EXTENT_LOCKED, in cow_file_range_async() 1508 test_range_bit(&BTRFS_I(inode)->io_tree, start, end, in need_force_cow() [all …]
|
D | file.c | 1386 lock_extent_bits(&BTRFS_I(inode)->io_tree, in lock_and_cleanup_extent_if_need() 1393 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in lock_and_cleanup_extent_if_need() 1407 clear_extent_bit(&BTRFS_I(inode)->io_tree, start_pos, in lock_and_cleanup_extent_if_need() 1443 lock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow() 1449 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow() 1464 unlock_extent(&BTRFS_I(inode)->io_tree, lockstart, lockend); in check_can_nocow() 1629 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in __btrfs_buffered_write() 1646 set_extent_bit(&BTRFS_I(inode)->io_tree, lockstart, in __btrfs_buffered_write() 2377 lock_extent_bits(&BTRFS_I(inode)->io_tree, lockstart, lockend, in btrfs_punch_hole() 2396 unlock_extent_cached(&BTRFS_I(inode)->io_tree, lockstart, in btrfs_punch_hole() [all …]
|
D | compression.c | 290 tree = &BTRFS_I(inode)->io_tree; in end_compressed_bio_write() 339 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in btrfs_submit_compressed_write() local 379 ret = io_tree->ops->merge_bio_hook(WRITE, page, 0, in btrfs_submit_compressed_write() 465 tree = &BTRFS_I(inode)->io_tree; in add_ra_bio_pages() 589 tree = &BTRFS_I(inode)->io_tree; in btrfs_submit_compressed_read()
|
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() 1017 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_readpage() 1033 tree = &BTRFS_I(page->mapping->host)->io_tree; in btree_invalidatepage() 1080 read_extent_buffer_pages(&BTRFS_I(btree_inode)->io_tree, in readahead_tree_block() [all …]
|
D | ioctl.c | 887 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in check_defrag_in_cache() local 904 end = count_range_bits(io_tree, &offset, offset + thresh, in check_defrag_in_cache() 981 struct extent_io_tree *io_tree = &BTRFS_I(inode)->io_tree; in defrag_lookup_extent() local 998 lock_extent_bits(io_tree, start, end, 0, &cached); in defrag_lookup_extent() 1000 unlock_extent_cached(io_tree, start, end, &cached, GFP_NOFS); in defrag_lookup_extent() 1126 tree = &BTRFS_I(inode)->io_tree; in cluster_pages_for_defrag() 1200 lock_extent_bits(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag() 1202 clear_extent_bit(&BTRFS_I(inode)->io_tree, page_start, in cluster_pages_for_defrag() 1216 set_extent_defrag(&BTRFS_I(inode)->io_tree, page_start, page_end - 1, in cluster_pages_for_defrag() 1219 unlock_extent_cached(&BTRFS_I(inode)->io_tree, in cluster_pages_for_defrag() [all …]
|
D | btrfs_inode.h | 80 struct extent_io_tree io_tree; member
|
D | scrub.c | 755 ret = set_extent_bits(&BTRFS_I(inode)->io_tree, offset, end, in scrub_fixup_readpage() 765 ret = extent_read_full_page(&BTRFS_I(inode)->io_tree, page, in scrub_fixup_readpage() 770 corrected = !test_range_bit(&BTRFS_I(inode)->io_tree, offset, in scrub_fixup_readpage() 773 clear_extent_bits(&BTRFS_I(inode)->io_tree, offset, end, in scrub_fixup_readpage() 4029 struct extent_io_tree *io_tree; in check_extent_to_block() local 4034 io_tree = &BTRFS_I(inode)->io_tree; in check_extent_to_block() 4036 lock_extent_bits(io_tree, lockstart, lockend, 0, &cached_state); in check_extent_to_block() 4063 unlock_extent_cached(io_tree, lockstart, lockend, &cached_state, in check_extent_to_block() 4076 struct extent_io_tree *io_tree; in copy_nocow_pages_for_inode() local 4110 io_tree = &BTRFS_I(inode)->io_tree; in copy_nocow_pages_for_inode() [all …]
|
D | extent_io.c | 1760 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in extent_clear_unlock_delalloc() 2006 ret = clear_extent_bits(&BTRFS_I(inode)->io_tree, rec->start, in free_io_failure() 2146 spin_lock(&BTRFS_I(inode)->io_tree.lock); in clean_io_failure() 2147 state = find_first_extent_bit_state(&BTRFS_I(inode)->io_tree, in clean_io_failure() 2150 spin_unlock(&BTRFS_I(inode)->io_tree.lock); in clean_io_failure() 2210 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in btrfs_get_io_failure_record() 2403 struct extent_io_tree *tree = &BTRFS_I(inode)->io_tree; in bio_readpage_error() 2457 tree = &BTRFS_I(page->mapping->host)->io_tree; in end_extent_writepage() 2572 tree = &BTRFS_I(inode)->io_tree; in end_bio_extent_readpage() 3782 struct extent_io_tree *tree = &BTRFS_I(fs_info->btree_inode)->io_tree; in write_one_eb() [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, 2081 lock_extent(&BTRFS_I(inode)->io_tree, start, end); 2083 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); 3041 lock_extent(&BTRFS_I(inode)->io_tree, start, end); 3046 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); 3078 lock_extent(&BTRFS_I(inode)->io_tree, start, end); 3089 unlock_extent(&BTRFS_I(inode)->io_tree, start, end); 3169 lock_extent(&BTRFS_I(inode)->io_tree, page_start, page_end); 3175 set_extent_bits(&BTRFS_I(inode)->io_tree, [all …]
|
D | free-space-cache.c | 999 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in update_cache_item() 1012 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, in update_cache_item() 1114 clear_extent_bit(&BTRFS_I(inode)->io_tree, 0, inode->i_size - 1, in flush_dirty_cache() 1140 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in cleanup_write_cache_enospc() 1265 lock_extent_bits(&BTRFS_I(inode)->io_tree, 0, i_size_read(inode) - 1, in __btrfs_write_out_cache() 1319 unlock_extent_cached(&BTRFS_I(inode)->io_tree, 0, in __btrfs_write_out_cache()
|
/linux-4.1.27/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()
|