Lines Matching refs:fs_info

2029 	struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info;  in repair_io_failure()  local
2035 struct btrfs_mapping_tree *map_tree = &fs_info->mapping_tree; in repair_io_failure()
2038 ASSERT(!(fs_info->sb->s_flags & MS_RDONLY)); in repair_io_failure()
2051 ret = btrfs_map_block(fs_info, WRITE, logical, in repair_io_failure()
2091 if (root->fs_info->sb->s_flags & MS_RDONLY) in repair_eb_io_failure()
2097 ret = repair_io_failure(root->fs_info->btree_inode, start, in repair_eb_io_failure()
2118 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in clean_io_failure() local
2143 if (fs_info->sb->s_flags & MS_RDONLY) in clean_io_failure()
2154 num_copies = btrfs_num_copies(fs_info, failrec->logical, in clean_io_failure()
2296 num_copies = btrfs_num_copies(BTRFS_I(inode)->root->fs_info, in btrfs_check_repairable()
2368 bio->bi_bdev = BTRFS_I(inode)->root->fs_info->fs_devices->latest_bdev; in btrfs_create_repair_bio()
2374 struct btrfs_fs_info *fs_info = BTRFS_I(inode)->root->fs_info; in btrfs_create_repair_bio() local
2375 u16 csum_size = btrfs_super_csum_size(fs_info->super_copy); in btrfs_create_repair_bio()
2501 btrfs_err(BTRFS_I(page->mapping->host)->root->fs_info, in end_bio_extent_writepage()
2505 btrfs_info(BTRFS_I(page->mapping->host)->root->fs_info, in end_bio_extent_writepage()
2581 btrfs_err(BTRFS_I(page->mapping->host)->root->fs_info, in end_bio_extent_readpage()
2585 btrfs_info(BTRFS_I(page->mapping->host)->root->fs_info, in end_bio_extent_readpage()
3492 btrfs_err(BTRFS_I(inode)->root->fs_info, in __extent_writepage_io()
3609 struct btrfs_fs_info *fs_info, in lock_extent_buffer_for_io() argument
3649 __percpu_counter_add(&fs_info->dirty_metadata_bytes, in lock_extent_buffer_for_io()
3651 fs_info->dirty_metadata_batch); in lock_extent_buffer_for_io()
3688 struct btrfs_inode *btree_ino = BTRFS_I(eb->fs_info->btree_inode); in set_btree_ioerr()
3777 struct btrfs_fs_info *fs_info, in write_one_eb() argument
3781 struct block_device *bdev = fs_info->fs_devices->latest_bdev; in write_one_eb()
3782 struct extent_io_tree *tree = &BTRFS_I(fs_info->btree_inode)->io_tree; in write_one_eb()
3833 struct btrfs_fs_info *fs_info = BTRFS_I(mapping->host)->root->fs_info; in btree_write_cache_pages() local
3914 ret = lock_extent_buffer_for_io(eb, fs_info, &epd); in btree_write_cache_pages()
3920 ret = write_one_eb(eb, fs_info, wbc, &epd); in btree_write_cache_pages()
4536 ret = btrfs_check_shared(NULL, root->fs_info, in extent_fiemap()
4659 __alloc_extent_buffer(struct btrfs_fs_info *fs_info, u64 start, in __alloc_extent_buffer() argument
4669 eb->fs_info = fs_info; in __alloc_extent_buffer()
4705 new = __alloc_extent_buffer(src->fs_info, src->start, src->len); in btrfs_clone_extent_buffer()
4728 struct extent_buffer *alloc_dummy_extent_buffer(struct btrfs_fs_info *fs_info, in alloc_dummy_extent_buffer() argument
4736 if (!fs_info) { in alloc_dummy_extent_buffer()
4743 len = fs_info->tree_root->nodesize; in alloc_dummy_extent_buffer()
4747 eb = __alloc_extent_buffer(fs_info, start, len); in alloc_dummy_extent_buffer()
4817 struct extent_buffer *find_extent_buffer(struct btrfs_fs_info *fs_info, in find_extent_buffer() argument
4823 eb = radix_tree_lookup(&fs_info->buffer_radix, in find_extent_buffer()
4855 struct extent_buffer *alloc_test_extent_buffer(struct btrfs_fs_info *fs_info, in alloc_test_extent_buffer() argument
4861 eb = find_extent_buffer(fs_info, start); in alloc_test_extent_buffer()
4864 eb = alloc_dummy_extent_buffer(fs_info, start); in alloc_test_extent_buffer()
4867 eb->fs_info = fs_info; in alloc_test_extent_buffer()
4872 spin_lock(&fs_info->buffer_lock); in alloc_test_extent_buffer()
4873 ret = radix_tree_insert(&fs_info->buffer_radix, in alloc_test_extent_buffer()
4875 spin_unlock(&fs_info->buffer_lock); in alloc_test_extent_buffer()
4878 exists = find_extent_buffer(fs_info, start); in alloc_test_extent_buffer()
4901 struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info, in alloc_extent_buffer() argument
4904 unsigned long len = fs_info->tree_root->nodesize; in alloc_extent_buffer()
4911 struct address_space *mapping = fs_info->btree_inode->i_mapping; in alloc_extent_buffer()
4915 eb = find_extent_buffer(fs_info, start); in alloc_extent_buffer()
4919 eb = __alloc_extent_buffer(fs_info, start, len); in alloc_extent_buffer()
4974 spin_lock(&fs_info->buffer_lock); in alloc_extent_buffer()
4975 ret = radix_tree_insert(&fs_info->buffer_radix, in alloc_extent_buffer()
4977 spin_unlock(&fs_info->buffer_lock); in alloc_extent_buffer()
4980 exists = find_extent_buffer(fs_info, start); in alloc_extent_buffer()
5033 struct btrfs_fs_info *fs_info = eb->fs_info; in release_extent_buffer() local
5037 spin_lock(&fs_info->buffer_lock); in release_extent_buffer()
5038 radix_tree_delete(&fs_info->buffer_radix, in release_extent_buffer()
5040 spin_unlock(&fs_info->buffer_lock); in release_extent_buffer()