/linux-4.19.296/fs/btrfs/ |
D | extent-tree.c | 76 static int block_rsv_use_bytes(struct btrfs_block_rsv *block_rsv, 5227 struct btrfs_block_rsv *block_rsv, in reserve_metadata_bytes() argument 5236 ret = __reserve_metadata_bytes(fs_info, block_rsv->space_info, in reserve_metadata_bytes() 5240 if (block_rsv != global_rsv && in reserve_metadata_bytes() 5246 block_rsv->space_info->flags, in reserve_metadata_bytes() 5250 dump_space_info(fs_info, block_rsv->space_info, in reserve_metadata_bytes() 5261 struct btrfs_block_rsv *block_rsv = NULL; in get_block_rsv() local 5266 block_rsv = trans->block_rsv; in get_block_rsv() 5268 if (!block_rsv) in get_block_rsv() 5269 block_rsv = root->block_rsv; in get_block_rsv() [all …]
|
D | delayed-inode.c | 553 src_rsv = trans->block_rsv; in btrfs_delayed_item_reserve_metadata() 607 src_rsv = trans->block_rsv; in btrfs_delayed_inode_reserve_metadata() 1152 struct btrfs_block_rsv *block_rsv; in __btrfs_run_delayed_items() local 1164 block_rsv = trans->block_rsv; in __btrfs_run_delayed_items() 1165 trans->block_rsv = &fs_info->delayed_block_rsv; in __btrfs_run_delayed_items() 1201 trans->block_rsv = block_rsv; in __btrfs_run_delayed_items() 1221 struct btrfs_block_rsv *block_rsv; in btrfs_commit_inode_delayed_items() local 1242 block_rsv = trans->block_rsv; in btrfs_commit_inode_delayed_items() 1243 trans->block_rsv = &delayed_node->root->fs_info->delayed_block_rsv; in btrfs_commit_inode_delayed_items() 1249 trans->block_rsv = block_rsv; in btrfs_commit_inode_delayed_items() [all …]
|
D | transaction.c | 481 h->orig_rsv = h->block_rsv; in start_transaction() 482 h->block_rsv = NULL; in start_transaction() 570 h->block_rsv = &fs_info->trans_block_rsv; in start_transaction() 644 trans->block_rsv = &fs_info->trans_block_rsv; in btrfs_start_transaction_fallback_global_rsv() 824 if (!trans->block_rsv) { in btrfs_trans_release_metadata() 832 ASSERT(trans->block_rsv == &fs_info->trans_block_rsv); in btrfs_trans_release_metadata() 835 btrfs_block_rsv_release(fs_info, trans->block_rsv, in btrfs_trans_release_metadata() 853 trans->block_rsv = trans->orig_rsv; in __btrfs_end_transaction() 858 trans->block_rsv = NULL; in __btrfs_end_transaction() 879 trans->block_rsv = NULL; in __btrfs_end_transaction() [all …]
|
D | inode-map.c | 426 rsv = trans->block_rsv; in btrfs_save_ino_cache() 427 trans->block_rsv = &fs_info->trans_block_rsv; in btrfs_save_ino_cache() 438 ret = btrfs_block_rsv_add(root, trans->block_rsv, in btrfs_save_ino_cache() 514 btrfs_block_rsv_release(fs_info, trans->block_rsv, in btrfs_save_ino_cache() 517 trans->block_rsv = rsv; in btrfs_save_ino_cache()
|
D | transaction.h | 118 struct btrfs_block_rsv *block_rsv; member 143 struct btrfs_block_rsv block_rsv; member
|
D | sysfs.c | 263 struct btrfs_block_rsv *block_rsv = &fs_info->global_block_rsv; in global_rsv_size_show() local 264 return btrfs_show_u64(&block_rsv->size, &block_rsv->lock, buf); in global_rsv_size_show() 272 struct btrfs_block_rsv *block_rsv = &fs_info->global_block_rsv; in global_rsv_reserved_show() local 273 return btrfs_show_u64(&block_rsv->reserved, &block_rsv->lock, buf); in global_rsv_reserved_show()
|
D | relocation.c | 154 struct btrfs_block_rsv *block_rsv; member 1435 rsv = trans->block_rsv; in btrfs_init_reloc_root() 1436 trans->block_rsv = rc->block_rsv; in btrfs_init_reloc_root() 1441 trans->block_rsv = rsv; in btrfs_init_reloc_root() 2179 ret = btrfs_block_rsv_refill(root, rc->block_rsv, min_reserved, in merge_reloc_root() 2191 trans->block_rsv = rc->block_rsv; in merge_reloc_root() 2296 ret = btrfs_block_rsv_add(root, rc->block_rsv, num_bytes, in prepare_to_merge() 2305 btrfs_block_rsv_release(fs_info, rc->block_rsv, in prepare_to_merge() 2313 btrfs_block_rsv_release(fs_info, rc->block_rsv, in prepare_to_merge() 2410 ret = btrfs_drop_snapshot(reloc_root, rc->block_rsv, 0, 1); in merge_reloc_roots() [all …]
|
D | props.c | 312 ret = btrfs_block_rsv_add(root, trans->block_rsv, in inherit_props() 318 btrfs_block_rsv_release(fs_info, trans->block_rsv, num_bytes); in inherit_props()
|
D | btrfs_inode.h | 173 struct btrfs_block_rsv block_rsv; member
|
D | super.c | 2119 struct btrfs_block_rsv *block_rsv = &fs_info->global_block_rsv; in btrfs_statfs() local 2161 spin_lock(&block_rsv->lock); in btrfs_statfs() 2163 if (buf->f_bfree >= block_rsv->size >> bits) in btrfs_statfs() 2164 buf->f_bfree -= block_rsv->size >> bits; in btrfs_statfs() 2167 spin_unlock(&block_rsv->lock); in btrfs_statfs() 2198 if (!mixed && block_rsv->space_info->full && in btrfs_statfs() 2199 (total_free_meta < thresh || total_free_meta - thresh < block_rsv->size)) in btrfs_statfs()
|
D | ioctl.c | 572 struct btrfs_block_rsv block_rsv; in create_subvol() local 599 btrfs_init_block_rsv(&block_rsv, BTRFS_BLOCK_RSV_TEMP); in create_subvol() 604 ret = btrfs_subvolume_reserve_metadata(root, &block_rsv, 8, false); in create_subvol() 611 btrfs_subvolume_release_metadata(fs_info, &block_rsv); in create_subvol() 614 trans->block_rsv = &block_rsv; in create_subvol() 615 trans->bytes_reserved = block_rsv.size; in create_subvol() 743 trans->block_rsv = NULL; in create_subvol() 745 btrfs_subvolume_release_metadata(fs_info, &block_rsv); in create_subvol() 823 btrfs_init_block_rsv(&pending_snapshot->block_rsv, in create_snapshot() 834 &pending_snapshot->block_rsv, 8, in create_snapshot() [all …]
|
D | inode.c | 314 trans->block_rsv = &BTRFS_I(inode)->block_rsv; in cow_file_range_inline() 3057 trans->block_rsv = &BTRFS_I(inode)->block_rsv; in btrfs_finish_ordered_io() 3093 trans->block_rsv = &BTRFS_I(inode)->block_rsv; in btrfs_finish_ordered_io() 4385 struct btrfs_block_rsv block_rsv; in btrfs_delete_subvolume() local 4415 btrfs_init_block_rsv(&block_rsv, BTRFS_BLOCK_RSV_TEMP); in btrfs_delete_subvolume() 4421 err = btrfs_subvolume_reserve_metadata(root, &block_rsv, 5, true); in btrfs_delete_subvolume() 4430 trans->block_rsv = &block_rsv; in btrfs_delete_subvolume() 4431 trans->bytes_reserved = block_rsv.size; in btrfs_delete_subvolume() 4483 trans->block_rsv = NULL; in btrfs_delete_subvolume() 4490 btrfs_subvolume_release_metadata(fs_info, &block_rsv); in btrfs_delete_subvolume() [all …]
|
D | ctree.h | 1179 struct btrfs_block_rsv *block_rsv; member 2779 struct btrfs_block_rsv *block_rsv, u64 num_bytes, 2781 int btrfs_block_rsv_check(struct btrfs_block_rsv *block_rsv, int min_factor); 2783 struct btrfs_block_rsv *block_rsv, u64 min_reserved, 2792 struct btrfs_block_rsv *block_rsv, 2945 struct btrfs_block_rsv *block_rsv,
|
D | file.c | 2633 trans->block_rsv = rsv; in btrfs_punch_hole() 2644 trans->block_rsv = &fs_info->trans_block_rsv; in btrfs_punch_hole() 2683 trans->block_rsv = rsv; in btrfs_punch_hole() 2699 trans->block_rsv = &fs_info->trans_block_rsv; in btrfs_punch_hole() 2736 trans->block_rsv = &fs_info->trans_block_rsv; in btrfs_punch_hole()
|
D | disk-io.c | 1165 root->block_rsv = NULL; in __setup_root()
|