Home
last modified time | relevance | path

Searched refs:transid (Results 1 – 23 of 23) sorted by relevance

/fs/btrfs/
Dtransaction.h28 u64 transid; member
109 u64 transid; member
161 BTRFS_I(inode)->last_trans = trans->transaction->transid; in btrfs_set_inode_last_trans()
202 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid);
Dtransaction.c271 cur_trans->transid = fs_info->generation; in join_transaction()
292 root->last_trans < trans->transid) || force) { in record_root_in_trans()
309 if (root->last_trans == trans->transid && !force) { in record_root_in_trans()
317 root->last_trans = trans->transid; in record_root_in_trans()
378 if (root->last_trans == trans->transid && in btrfs_record_root_in_trans()
572 h->transid = cur_trans->transid; in start_transaction()
592 h->transid, num_bytes, 1); in start_transaction()
727 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid) in btrfs_wait_for_commit() argument
732 if (transid) { in btrfs_wait_for_commit()
733 if (transid <= fs_info->last_trans_committed) in btrfs_wait_for_commit()
[all …]
Dtree-log.h37 WRITE_ONCE(trans->fs_info->last_trans_log_full_commit, trans->transid); in btrfs_set_log_full_commit()
43 trans->transid; in btrfs_need_log_full_commit()
Dfile.c45 u64 transid; member
105 if (defrag->transid < entry->transid) in __btrfs_add_inode_defrag()
106 entry->transid = defrag->transid; in __btrfs_add_inode_defrag()
139 u64 transid; in btrfs_add_inode_defrag() local
149 transid = trans->transid; in btrfs_add_inode_defrag()
151 transid = inode->root->last_trans; in btrfs_add_inode_defrag()
158 defrag->transid = transid; in btrfs_add_inode_defrag()
313 num_defrag = btrfs_defrag_file(inode, NULL, &range, defrag->transid, in __btrfs_run_defrag_inode()
1223 trans->transid); in btrfs_mark_extent_written()
1231 trans->transid); in btrfs_mark_extent_written()
[all …]
Dctree.c230 trans->transid != fs_info->running_transaction->transid); in btrfs_copy_root()
232 trans->transid != root->last_trans); in btrfs_copy_root()
247 btrfs_set_header_generation(cow, trans->transid); in btrfs_copy_root()
258 WARN_ON(btrfs_header_generation(buf) > trans->transid); in btrfs_copy_root()
1073 trans->transid != fs_info->running_transaction->transid); in __btrfs_cow_block()
1075 trans->transid != root->last_trans); in __btrfs_cow_block()
1096 btrfs_set_header_generation(cow, trans->transid); in __btrfs_cow_block()
1141 WARN_ON(trans->transid != btrfs_header_generation(parent)); in __btrfs_cow_block()
1147 trans->transid); in __btrfs_cow_block()
1505 if (btrfs_header_generation(buf) == trans->transid && in should_cow_block()
[all …]
Dtree-log.c544 trans->transid); in overwrite_item()
2998 static void wait_log_commit(struct btrfs_root *root, int transid) in wait_log_commit() argument
3001 int index = transid % 2; in wait_log_commit()
3012 if (!(root->log_transid_committed < transid && in wait_log_commit()
3389 if (inode->logged_trans == trans->transid) in inode_logged()
3392 if (inode->last_trans == trans->transid && in inode_logged()
3623 ret = btrfs_search_forward(root, &min_key, path, trans->transid); in log_dir_items()
3742 (btrfs_dir_transid(src, di) == trans->transid || in log_dir_items()
3766 if (btrfs_header_generation(path->nodes[0]) != trans->transid) { in log_dir_items()
3947 btrfs_set_token_inode_transid(leaf, item, trans->transid, &token); in fill_inode_item()
[all …]
Dioctl.c653 btrfs_set_root_generation(root_item, trans->transid); in create_subvol()
666 btrfs_set_root_ctransid(root_item, trans->transid); in create_subvol()
667 btrfs_set_root_otransid(root_item, trans->transid); in create_subvol()
758 *async_transid = trans->transid; in create_subvol()
872 *async_transid = trans->transid; in create_snapshot()
1803 u64 *transid, bool readonly, in btrfs_ioctl_snap_create_transid() argument
1830 NULL, transid, readonly, inherit); in btrfs_ioctl_snap_create_transid()
1862 transid, readonly, inherit); in btrfs_ioctl_snap_create_transid()
1899 u64 transid = 0; in btrfs_ioctl_snap_create_v2() local
1926 ptr = &transid; in btrfs_ioctl_snap_create_v2()
[all …]
Ddisk-io.c1080 fs_info->running_transaction->transid) { in btrfs_clean_tree_block()
1265 btrfs_set_root_generation(&root->root_item, trans->transid); in btrfs_create_tree()
1361 log_root->last_trans = trans->transid; in btrfs_add_log_tree()
1733 u64 transid; in transaction_kthread() local
1758 transid = cur->transid; in transaction_kthread()
1768 if (transid == trans->transid) { in transaction_kthread()
3490 u64 transid = 0; in btrfs_read_dev_super() local
3505 if (!latest || btrfs_super_generation(super) > transid) { in btrfs_read_dev_super()
3508 transid = btrfs_super_generation(super); in btrfs_read_dev_super()
4191 u64 transid = btrfs_header_generation(buf); in btrfs_mark_buffer_dirty() local
[all …]
Dtree-defrag.c139 root->defrag_trans_start = trans->transid; in btrfs_defrag_leaves()
Ddir-item.c88 btrfs_set_dir_transid(leaf, dir_item, trans->transid); in btrfs_insert_xattr_item()
149 btrfs_set_dir_transid(leaf, dir_item, trans->transid); in btrfs_insert_dir_item()
Dinode-map.c445 trace_btrfs_space_reservation(fs_info, "ino_cache", trans->transid, in btrfs_save_ino_cache()
514 trace_btrfs_space_reservation(fs_info, "ino_cache", trans->transid, in btrfs_save_ino_cache()
Drelocation.c477 cache->last_trans = trans->transid; in update_backref_cache()
481 if (cache->last_trans == trans->transid) in update_backref_cache()
565 root->fs_info->running_transaction->transid) in should_ignore_root()
1432 btrfs_set_root_generation(root_item, trans->transid); in create_reloc_root()
1451 reloc_root->last_trans = trans->transid; in create_reloc_root()
1489 reloc_root->last_trans = trans->transid; in btrfs_init_reloc_root()
2365 reloc_root->last_trans = trans->transid; in merge_reloc_root()
2641 if (reloc_root->last_trans == trans->transid) in record_reloc_root_in_trans()
2960 trans->transid); in do_relocation()
Dblock-group.c2080 u64 transid = trans->transid; in btrfs_inc_block_group_ro() local
2085 ret = btrfs_wait_for_commit(fs_info, transid); in btrfs_inc_block_group_ro()
2254 if (block_group->cache_generation == trans->transid && in cache_save_setup()
2335 block_group->cache_generation = trans->transid; in cache_save_setup()
Dqgroup.c665 btrfs_set_qgroup_info_generation(leaf, qgroup_info, trans->transid); in add_qgroup_item()
819 btrfs_set_qgroup_info_generation(l, qgroup_info, trans->transid); in update_qgroup_info_item()
862 btrfs_set_qgroup_status_generation(l, ptr, trans->transid); in update_qgroup_status_item()
1023 btrfs_set_qgroup_status_generation(leaf, ptr, trans->transid); in btrfs_quota_enable()
2608 trace_btrfs_qgroup_account_extent(fs_info, trans->transid, bytenr, in btrfs_qgroup_account_extent()
2732 trace_qgroup_num_dirty_extents(fs_info, trans->transid, in btrfs_qgroup_account_extents()
Droot-tree.c501 btrfs_set_root_ctransid(item, trans->transid); in btrfs_update_root_times()
Dfree-space-cache.c158 btrfs_set_inode_generation(leaf, inode_item, trans->transid); in __create_free_space_inode()
166 btrfs_set_inode_transid(leaf, inode_item, trans->transid); in __create_free_space_inode()
1039 BTRFS_I(inode)->generation = trans->transid; in update_cache_item()
1044 btrfs_set_free_space_generation(leaf, header, trans->transid); in update_cache_item()
1286 io_ctl_set_generation(io_ctl, trans->transid); in __btrfs_write_out_cache()
Dctree.h1559 BTRFS_SETGET_FUNCS(inode_transid, struct btrfs_inode_item, transid, 64);
1574 transid, 64);
1792 BTRFS_SETGET_FUNCS(dir_transid, struct btrfs_dir_item, transid, 64);
1799 transid, 64);
Dextent-tree.c3301 if (last_ref && btrfs_header_generation(buf) == trans->transid) { in btrfs_free_tree_block()
4266 btrfs_set_extent_generation(leaf, extent_item, trans->transid); in alloc_reserved_file_extent()
4351 btrfs_set_extent_generation(leaf, extent_item, trans->transid); in alloc_reserved_tree_block()
4495 btrfs_set_header_generation(buf, trans->transid); in btrfs_init_new_buffer()
5121 btrfs_header_generation(eb) == trans->transid) { in walk_up_proc()
Ddelayed-inode.c1482 btrfs_set_stack_dir_transid(dir_item, trans->transid); in btrfs_insert_delayed_dir_index()
1766 btrfs_set_stack_inode_transid(inode_item, trans->transid); in fill_stack_inode_item()
Dinode.c209 btrfs_set_file_extent_generation(leaf, ei, trans->transid); in insert_inline_extent()
2492 btrfs_set_file_extent_generation(leaf, fi, trans->transid); in insert_reserved_file_extent()
2965 btrfs_set_file_extent_generation(leaf, item, trans->transid); in relink_extent_backref()
3320 trans->transid); in btrfs_finish_ordered_io()
4122 btrfs_set_token_inode_transid(leaf, item, trans->transid, &token); in fill_inode_item()
4782 if (last_unlink_trans >= trans->transid) in btrfs_rmdir()
6605 BTRFS_I(inode)->generation = trans->transid; in btrfs_new_inode()
10465 btrfs_set_file_extent_generation(leaf, ei, trans->transid); in btrfs_symlink()
10597 em->generation = trans->transid; in __btrfs_prealloc_file_range()
Dfile-item.c68 btrfs_set_file_extent_generation(leaf, item, trans->transid); in btrfs_insert_file_extent()
Dvolumes.c2744 device->generation = trans->transid; in btrfs_init_new_device()
/fs/btrfs/tests/
Dbtrfs-tests.c248 trans->transid = 1; in btrfs_init_dummy_trans()