Searched refs:io_ctl (Results 1 – 4 of 4) sorted by relevance
40 struct btrfs_io_ctl *io_ctl,300 static int io_ctl_init(struct btrfs_io_ctl *io_ctl, struct inode *inode, in io_ctl_init() argument316 memset(io_ctl, 0, sizeof(struct btrfs_io_ctl)); in io_ctl_init()318 io_ctl->pages = kcalloc(num_pages, sizeof(struct page *), GFP_NOFS); in io_ctl_init()319 if (!io_ctl->pages) in io_ctl_init()322 io_ctl->num_pages = num_pages; in io_ctl_init()323 io_ctl->fs_info = btrfs_sb(inode->i_sb); in io_ctl_init()324 io_ctl->check_crcs = check_crcs; in io_ctl_init()325 io_ctl->inode = inode; in io_ctl_init()331 static void io_ctl_free(struct btrfs_io_ctl *io_ctl) in io_ctl_free() argument[all …]
124 struct btrfs_io_ctl io_ctl; member
939 WARN_ON(!IS_ERR(inode) && inode != block_group->io_ctl.inode); in btrfs_remove_block_group()2454 cache->io_ctl.inode = NULL; in btrfs_start_dirty_block_groups()2456 if (ret == 0 && cache->io_ctl.inode) { in btrfs_start_dirty_block_groups()2611 cache->io_ctl.inode = NULL; in btrfs_write_dirty_block_groups()2613 if (ret == 0 && cache->io_ctl.inode) { in btrfs_write_dirty_block_groups()3119 ASSERT(block_group->io_ctl.inode == NULL); in btrfs_put_block_group_cache()
4533 inode = cache->io_ctl.inode; in btrfs_cleanup_bg_io()4542 cache->io_ctl.inode = NULL; in btrfs_cleanup_bg_io()4545 ASSERT(cache->io_ctl.pages == NULL); in btrfs_cleanup_bg_io()