Searched refs:io_ctl (Results 1 – 4 of 4) sorted by relevance
37 struct btrfs_io_ctl *io_ctl,297 static int io_ctl_init(struct btrfs_io_ctl *io_ctl, struct inode *inode, in io_ctl_init() argument313 memset(io_ctl, 0, sizeof(struct btrfs_io_ctl)); in io_ctl_init()315 io_ctl->pages = kcalloc(num_pages, sizeof(struct page *), GFP_NOFS); in io_ctl_init()316 if (!io_ctl->pages) in io_ctl_init()319 io_ctl->num_pages = num_pages; in io_ctl_init()320 io_ctl->fs_info = btrfs_sb(inode->i_sb); in io_ctl_init()321 io_ctl->check_crcs = check_crcs; in io_ctl_init()322 io_ctl->inode = inode; in io_ctl_init()328 static void io_ctl_free(struct btrfs_io_ctl *io_ctl) in io_ctl_free() argument[all …]
4471 inode = cache->io_ctl.inode; in btrfs_cleanup_bg_io()4480 cache->io_ctl.inode = NULL; in btrfs_cleanup_bg_io()4483 ASSERT(cache->io_ctl.pages == NULL); in btrfs_cleanup_bg_io()
3596 cache->io_ctl.inode = NULL; in btrfs_start_dirty_block_groups()3599 if (ret == 0 && cache->io_ctl.inode) { in btrfs_start_dirty_block_groups()3750 cache->io_ctl.inode = NULL; in btrfs_write_dirty_block_groups()3753 if (ret == 0 && cache->io_ctl.inode) { in btrfs_write_dirty_block_groups()9670 ASSERT(block_group->io_ctl.inode == NULL); in btrfs_put_block_group_cache()10314 WARN_ON(!IS_ERR(inode) && inode != block_group->io_ctl.inode); in btrfs_remove_block_group()
644 struct btrfs_io_ctl io_ctl; member