Home
last modified time | relevance | path

Searched refs:io_ctl (Results 1 – 4 of 4) sorted by relevance

/fs/btrfs/
Dfree-space-cache.c379 static int io_ctl_init(struct btrfs_io_ctl *io_ctl, struct inode *inode, in io_ctl_init() argument
390 memset(io_ctl, 0, sizeof(struct btrfs_io_ctl)); in io_ctl_init()
392 io_ctl->pages = kcalloc(num_pages, sizeof(struct page *), GFP_NOFS); in io_ctl_init()
393 if (!io_ctl->pages) in io_ctl_init()
396 io_ctl->num_pages = num_pages; in io_ctl_init()
397 io_ctl->fs_info = btrfs_sb(inode->i_sb); in io_ctl_init()
398 io_ctl->inode = inode; in io_ctl_init()
404 static void io_ctl_free(struct btrfs_io_ctl *io_ctl) in io_ctl_free() argument
406 kfree(io_ctl->pages); in io_ctl_free()
407 io_ctl->pages = NULL; in io_ctl_free()
[all …]
Dblock-group.h206 struct btrfs_io_ctl io_ctl; member
Dblock-group.c1120 WARN_ON(!IS_ERR(inode) && inode != block_group->io_ctl.inode); in btrfs_remove_block_group()
3389 cache->io_ctl.inode = NULL; in btrfs_start_dirty_block_groups()
3391 if (ret == 0 && cache->io_ctl.inode) { in btrfs_start_dirty_block_groups()
3546 cache->io_ctl.inode = NULL; in btrfs_write_dirty_block_groups()
3548 if (ret == 0 && cache->io_ctl.inode) { in btrfs_write_dirty_block_groups()
4342 ASSERT(block_group->io_ctl.inode == NULL); in btrfs_put_block_group_cache()
Ddisk-io.c4779 inode = cache->io_ctl.inode; in btrfs_cleanup_bg_io()
4788 cache->io_ctl.inode = NULL; in btrfs_cleanup_bg_io()
4791 ASSERT(cache->io_ctl.pages == NULL); in btrfs_cleanup_bg_io()