Home
last modified time | relevance | path

Searched refs:io_ctl (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/fs/btrfs/
H A Dfree-space-cache.c44 struct btrfs_io_ctl *io_ctl,
303 static int io_ctl_init(struct btrfs_io_ctl *io_ctl, struct inode *inode, in io_ctl_init() argument
319 memset(io_ctl, 0, sizeof(struct btrfs_io_ctl)); in io_ctl_init()
321 io_ctl->pages = kcalloc(num_pages, sizeof(struct page *), GFP_NOFS); in io_ctl_init()
322 if (!io_ctl->pages) in io_ctl_init()
325 io_ctl->num_pages = num_pages; in io_ctl_init()
326 io_ctl->fs_info = btrfs_sb(inode->i_sb); in io_ctl_init()
327 io_ctl->check_crcs = check_crcs; in io_ctl_init()
328 io_ctl->inode = inode; in io_ctl_init()
334 static void io_ctl_free(struct btrfs_io_ctl *io_ctl) in io_ctl_free() argument
340 io_ctl_unmap_page(struct btrfs_io_ctl *io_ctl) io_ctl_unmap_page() argument
348 io_ctl_map_page(struct btrfs_io_ctl *io_ctl, int clear) io_ctl_map_page() argument
359 io_ctl_drop_pages(struct btrfs_io_ctl *io_ctl) io_ctl_drop_pages() argument
374 io_ctl_prepare_pages(struct btrfs_io_ctl *io_ctl, bool uptodate) io_ctl_prepare_pages() argument
414 io_ctl_set_generation(struct btrfs_io_ctl *io_ctl, u64 generation) io_ctl_set_generation() argument
434 io_ctl_check_generation(struct btrfs_io_ctl *io_ctl, u64 generation) io_ctl_check_generation() argument
463 io_ctl_set_crc(struct btrfs_io_ctl *io_ctl, int index) io_ctl_set_crc() argument
485 io_ctl_check_crc(struct btrfs_io_ctl *io_ctl, int index) io_ctl_check_crc() argument
516 io_ctl_add_entry(struct btrfs_io_ctl *io_ctl, u64 offset, u64 bytes, void *bitmap) io_ctl_add_entry() argument
546 io_ctl_add_bitmap(struct btrfs_io_ctl *io_ctl, void *bitmap) io_ctl_add_bitmap() argument
569 io_ctl_zero_remaining_pages(struct btrfs_io_ctl *io_ctl) io_ctl_zero_remaining_pages() argument
586 io_ctl_read_entry(struct btrfs_io_ctl *io_ctl, struct btrfs_free_space *entry, u8 *type) io_ctl_read_entry() argument
613 io_ctl_read_bitmap(struct btrfs_io_ctl *io_ctl, struct btrfs_free_space *entry) io_ctl_read_bitmap() argument
673 struct btrfs_io_ctl io_ctl; __load_free_space_cache() local
942 write_cache_extent_entries(struct btrfs_io_ctl *io_ctl, struct btrfs_free_space_ctl *ctl, struct btrfs_block_group *block_group, int *entries, int *bitmaps, struct list_head *bitmap_list) write_cache_extent_entries() argument
1071 write_pinned_extent_entries( struct btrfs_trans_handle *trans, struct btrfs_block_group *block_group, struct btrfs_io_ctl *io_ctl, int *entries) write_pinned_extent_entries() argument
1123 write_bitmap_entries(struct btrfs_io_ctl *io_ctl, struct list_head *bitmap_list) write_bitmap_entries() argument
1161 cleanup_write_cache_enospc(struct inode *inode, struct btrfs_io_ctl *io_ctl, struct extent_state **cached_state) cleanup_write_cache_enospc() argument
1170 __btrfs_wait_cache_io(struct btrfs_root *root, struct btrfs_trans_handle *trans, struct btrfs_block_group *block_group, struct btrfs_io_ctl *io_ctl, struct btrfs_path *path, u64 offset) __btrfs_wait_cache_io() argument
1228 btrfs_wait_cache_io_root(struct btrfs_root *root, struct btrfs_trans_handle *trans, struct btrfs_io_ctl *io_ctl, struct btrfs_path *path) btrfs_wait_cache_io_root() argument
1256 __btrfs_write_out_cache(struct btrfs_root *root, struct inode *inode, struct btrfs_free_space_ctl *ctl, struct btrfs_block_group *block_group, struct btrfs_io_ctl *io_ctl, struct btrfs_trans_handle *trans) __btrfs_write_out_cache() argument
3971 struct btrfs_io_ctl io_ctl; btrfs_write_out_ino_cache() local
[all...]
H A Dblock-group.h152 struct btrfs_io_ctl io_ctl; member
H A Dblock-group.c973 WARN_ON(!IS_ERR(inode) && inode != block_group->io_ctl.inode); in btrfs_remove_block_group()
2652 cache->io_ctl.inode = NULL; in btrfs_start_dirty_block_groups()
2654 if (ret == 0 && cache->io_ctl.inode) { in btrfs_start_dirty_block_groups()
2809 cache->io_ctl.inode = NULL; in btrfs_write_dirty_block_groups()
2811 if (ret == 0 && cache->io_ctl.inode) { in btrfs_write_dirty_block_groups()
3322 ASSERT(block_group->io_ctl.inode == NULL); in btrfs_put_block_group_cache()
H A Ddisk-io.c4654 inode = cache->io_ctl.inode; in btrfs_cleanup_bg_io()
4663 cache->io_ctl.inode = NULL; in btrfs_cleanup_bg_io()
4666 ASSERT(cache->io_ctl.pages == NULL); in btrfs_cleanup_bg_io()
/kernel/linux/linux-6.6/fs/btrfs/
H A 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 in io_ctl_free()
410 io_ctl_unmap_page(struct btrfs_io_ctl *io_ctl) io_ctl_unmap_page() argument
418 io_ctl_map_page(struct btrfs_io_ctl *io_ctl, int clear) io_ctl_map_page() argument
429 io_ctl_drop_pages(struct btrfs_io_ctl *io_ctl) io_ctl_drop_pages() argument
447 io_ctl_prepare_pages(struct btrfs_io_ctl *io_ctl, bool uptodate) io_ctl_prepare_pages() argument
496 io_ctl_set_generation(struct btrfs_io_ctl *io_ctl, u64 generation) io_ctl_set_generation() argument
511 io_ctl_check_generation(struct btrfs_io_ctl *io_ctl, u64 generation) io_ctl_check_generation() argument
534 io_ctl_set_crc(struct btrfs_io_ctl *io_ctl, int index) io_ctl_set_crc() argument
551 io_ctl_check_crc(struct btrfs_io_ctl *io_ctl, int index) io_ctl_check_crc() argument
577 io_ctl_add_entry(struct btrfs_io_ctl *io_ctl, u64 offset, u64 bytes, void *bitmap) io_ctl_add_entry() argument
607 io_ctl_add_bitmap(struct btrfs_io_ctl *io_ctl, void *bitmap) io_ctl_add_bitmap() argument
630 io_ctl_zero_remaining_pages(struct btrfs_io_ctl *io_ctl) io_ctl_zero_remaining_pages() argument
647 io_ctl_read_entry(struct btrfs_io_ctl *io_ctl, struct btrfs_free_space *entry, u8 *type) io_ctl_read_entry() argument
674 io_ctl_read_bitmap(struct btrfs_io_ctl *io_ctl, struct btrfs_free_space *entry) io_ctl_read_bitmap() argument
740 struct btrfs_io_ctl io_ctl; __load_free_space_cache() local
1068 write_cache_extent_entries(struct btrfs_io_ctl *io_ctl, struct btrfs_free_space_ctl *ctl, struct btrfs_block_group *block_group, int *entries, int *bitmaps, struct list_head *bitmap_list) write_cache_extent_entries() argument
1197 write_pinned_extent_entries( struct btrfs_trans_handle *trans, struct btrfs_block_group *block_group, struct btrfs_io_ctl *io_ctl, int *entries) write_pinned_extent_entries() argument
1248 write_bitmap_entries(struct btrfs_io_ctl *io_ctl, struct list_head *bitmap_list) write_bitmap_entries() argument
1286 cleanup_write_cache_enospc(struct inode *inode, struct btrfs_io_ctl *io_ctl, struct extent_state **cached_state) cleanup_write_cache_enospc() argument
1295 __btrfs_wait_cache_io(struct btrfs_root *root, struct btrfs_trans_handle *trans, struct btrfs_block_group *block_group, struct btrfs_io_ctl *io_ctl, struct btrfs_path *path, u64 offset) __btrfs_wait_cache_io() argument
1376 __btrfs_write_out_cache(struct btrfs_root *root, struct inode *inode, struct btrfs_free_space_ctl *ctl, struct btrfs_block_group *block_group, struct btrfs_io_ctl *io_ctl, struct btrfs_trans_handle *trans) __btrfs_write_out_cache() argument
[all...]
H A Dblock-group.h206 struct btrfs_io_ctl io_ctl; member
H A Dblock-group.c1120 WARN_ON(!IS_ERR(inode) && inode != block_group->io_ctl.inode); in btrfs_remove_block_group()
3369 cache->io_ctl.inode = NULL; in btrfs_start_dirty_block_groups()
3371 if (ret == 0 && cache->io_ctl.inode) { in btrfs_start_dirty_block_groups()
3526 cache->io_ctl.inode = NULL; in btrfs_write_dirty_block_groups()
3528 if (ret == 0 && cache->io_ctl.inode) { in btrfs_write_dirty_block_groups()
4322 ASSERT(block_group->io_ctl.inode == NULL); in btrfs_put_block_group_cache()
H A Ddisk-io.c4785 inode = cache->io_ctl.inode; in btrfs_cleanup_bg_io()
4794 cache->io_ctl.inode = NULL; in btrfs_cleanup_bg_io()
4797 ASSERT(cache->io_ctl.pages == NULL); in btrfs_cleanup_bg_io()

Completed in 26 milliseconds