Lines Matching refs:fs_info

99 		btrfs_debug_rl(BTRFS_I(inode)->root->fs_info,  in __btrfs_debug_check_extent_io_range()
2097 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in repair_io_failure() local
2103 struct btrfs_mapping_tree *map_tree = &fs_info->mapping_tree; in repair_io_failure()
2106 ASSERT(!(fs_info->sb->s_flags & MS_RDONLY)); in repair_io_failure()
2119 ret = btrfs_map_block(fs_info, WRITE, logical, in repair_io_failure()
2144 btrfs_info_rl_in_rcu(fs_info, in repair_io_failure()
2159 if (root->fs_info->sb->s_flags & MS_RDONLY) in repair_eb_io_failure()
2165 ret = repair_io_failure(root->fs_info->btree_inode, start, in repair_eb_io_failure()
2186 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in clean_io_failure() local
2211 if (fs_info->sb->s_flags & MS_RDONLY) in clean_io_failure()
2222 num_copies = btrfs_num_copies(fs_info, failrec->logical, in clean_io_failure()
2364 num_copies = btrfs_num_copies(BTRFS_I(inode)->root->fs_info, in btrfs_check_repairable()
2436 bio->bi_bdev = BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; in btrfs_create_repair_bio()
2442 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in btrfs_create_repair_bio() local
2443 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_create_repair_bio()
2569 btrfs_err(BTRFS_I(page->mapping->host)->root->fs_info, in end_bio_extent_writepage()
2573 btrfs_info(BTRFS_I(page->mapping->host)->root->fs_info, in end_bio_extent_writepage()
2646 btrfs_err(BTRFS_I(page->mapping->host)->root->fs_info, in end_bio_extent_readpage()
2650 btrfs_info(BTRFS_I(page->mapping->host)->root->fs_info, in end_bio_extent_readpage()
3563 btrfs_err(BTRFS_I(inode)->root->fs_info, in __extent_writepage_io()
3680 struct btrfs_fs_info *fs_info, in lock_extent_buffer_for_io() argument
3720 __percpu_counter_add(&fs_info->dirty_metadata_bytes, in lock_extent_buffer_for_io()
3722 fs_info->dirty_metadata_batch); in lock_extent_buffer_for_io()
3759 struct btrfs_inode *btree_ino = BTRFS_I(eb->fs_info->btree_inode); in set_btree_ioerr()
3849 struct btrfs_fs_info *fs_info, in write_one_eb() argument
3853 struct block_device *bdev = fs_info->fs_devices->latest_bdev; in write_one_eb()
3854 struct extent_io_tree *tree = &BTRFS_I(fs_info->btree_inode)->io_tree; in write_one_eb()
3905 struct btrfs_fs_info *fs_info = BTRFS_I(mapping->host)->root->fs_info; in btree_write_cache_pages() local
3986 ret = lock_extent_buffer_for_io(eb, fs_info, &epd); in btree_write_cache_pages()
3992 ret = write_one_eb(eb, fs_info, wbc, &epd); in btree_write_cache_pages()
4608 ret = btrfs_check_shared(NULL, root->fs_info, in extent_fiemap()
4733 __alloc_extent_buffer(struct btrfs_fs_info *fs_info, u64 start, in __alloc_extent_buffer() argument
4741 eb->fs_info = fs_info; in __alloc_extent_buffer()
4777 new = __alloc_extent_buffer(src->fs_info, src->start, src->len); in btrfs_clone_extent_buffer()
4800 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, in alloc_dummy_extent_buffer() argument
4808 if (!fs_info) { in alloc_dummy_extent_buffer()
4815 len = fs_info->tree_root->nodesize; in alloc_dummy_extent_buffer()
4819 eb = __alloc_extent_buffer(fs_info, start, len); in alloc_dummy_extent_buffer()
4889 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info, in find_extent_buffer() argument
4895 eb = radix_tree_lookup(&fs_info->buffer_radix, in find_extent_buffer()
4927 struct extent_buffer *alloc_test_extent_buffer(struct btrfs_fs_info *fs_info, in alloc_test_extent_buffer() argument
4933 eb = find_extent_buffer(fs_info, start); in alloc_test_extent_buffer()
4936 eb = alloc_dummy_extent_buffer(fs_info, start); in alloc_test_extent_buffer()
4939 eb->fs_info = fs_info; in alloc_test_extent_buffer()
4944 spin_lock(&fs_info->buffer_lock); in alloc_test_extent_buffer()
4945 ret = radix_tree_insert(&fs_info->buffer_radix, in alloc_test_extent_buffer()
4947 spin_unlock(&fs_info->buffer_lock); in alloc_test_extent_buffer()
4950 exists = find_extent_buffer(fs_info, start); in alloc_test_extent_buffer()
4973 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, in alloc_extent_buffer() argument
4976 unsigned long len = fs_info->tree_root->nodesize; in alloc_extent_buffer()
4983 struct address_space *mapping = fs_info->btree_inode->i_mapping; in alloc_extent_buffer()
4987 eb = find_extent_buffer(fs_info, start); in alloc_extent_buffer()
4991 eb = __alloc_extent_buffer(fs_info, start, len); in alloc_extent_buffer()
5046 spin_lock(&fs_info->buffer_lock); in alloc_extent_buffer()
5047 ret = radix_tree_insert(&fs_info->buffer_radix, in alloc_extent_buffer()
5049 spin_unlock(&fs_info->buffer_lock); in alloc_extent_buffer()
5052 exists = find_extent_buffer(fs_info, start); in alloc_extent_buffer()
5105 struct btrfs_fs_info *fs_info = eb->fs_info; in release_extent_buffer() local
5109 spin_lock(&fs_info->buffer_lock); in release_extent_buffer()
5110 radix_tree_delete(&fs_info->buffer_radix, in release_extent_buffer()
5112 spin_unlock(&fs_info->buffer_lock); in release_extent_buffer()
5636 btrfs_err(dst->fs_info, in memcpy_extent_buffer()
5642 btrfs_err(dst->fs_info, in memcpy_extent_buffer()
5684 btrfs_err(dst->fs_info, "memmove bogus src_offset %lu move " in memmove_extent_buffer()
5689 btrfs_err(dst->fs_info, "memmove bogus dst_offset %lu move " in memmove_extent_buffer()