Lines Matching refs:failure_tree
2221 int free_io_failure(struct extent_io_tree *failure_tree, in free_io_failure() argument
2228 set_state_failrec(failure_tree, rec->start, NULL); in free_io_failure()
2229 ret = clear_extent_bits(failure_tree, rec->start, in free_io_failure()
2364 struct extent_io_tree *failure_tree, in clean_io_failure() argument
2375 ret = count_range_bits(failure_tree, &private, (u64)-1, 1, in clean_io_failure()
2380 failrec = get_state_failrec(failure_tree, start); in clean_io_failure()
2414 free_io_failure(failure_tree, io_tree, failrec); in clean_io_failure()
2427 struct extent_io_tree *failure_tree = &inode->io_failure_tree; in btrfs_free_io_failure_record() local
2431 if (RB_EMPTY_ROOT(&failure_tree->state)) in btrfs_free_io_failure_record()
2434 spin_lock(&failure_tree->lock); in btrfs_free_io_failure_record()
2435 state = find_first_extent_bit_state(failure_tree, start, EXTENT_DIRTY); in btrfs_free_io_failure_record()
2450 spin_unlock(&failure_tree->lock); in btrfs_free_io_failure_record()
2459 struct extent_io_tree *failure_tree = &BTRFS_I(inode)->io_failure_tree; in btrfs_get_io_failure_record() local
2465 failrec = get_state_failrec(failure_tree, start); in btrfs_get_io_failure_record()
2524 ret = set_extent_bits(failure_tree, start, end, in btrfs_get_io_failure_record()
2527 ret = set_state_failrec(failure_tree, start, failrec); in btrfs_get_io_failure_record()
2653 struct extent_io_tree *failure_tree = &BTRFS_I(inode)->io_failure_tree; in btrfs_submit_read_repair() local
2674 free_io_failure(failure_tree, tree, failrec); in btrfs_submit_read_repair()
2706 free_io_failure(failure_tree, tree, failrec); in btrfs_submit_read_repair()
2806 struct extent_io_tree *tree, *failure_tree; in end_bio_extent_readpage() local
2828 failure_tree = &BTRFS_I(inode)->io_failure_tree; in end_bio_extent_readpage()
2862 failure_tree, tree, start, in end_bio_extent_readpage()