Home
last modified time | relevance | path

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

/fs/btrfs/
Dtransaction.c168 fs_info->last_reloc_trans = trans->transid; in switch_commit_roots()
398 cur_trans->transid = fs_info->generation; in join_transaction()
420 root->last_trans < trans->transid) || force) { in record_root_in_trans()
437 if (root->last_trans == trans->transid && !force) { in record_root_in_trans()
445 root->last_trans = trans->transid; in record_root_in_trans()
507 if (root->last_trans == trans->transid && in btrfs_record_root_in_trans()
698 h->transid = cur_trans->transid; in start_transaction()
717 h->transid, num_bytes, 1); in start_transaction()
860 u64 transid = commit->transid; in wait_for_commit() local
882 if (!commit || commit->transid > transid) { in wait_for_commit()
[all …]
Dtransaction.h29 u64 transid; member
119 u64 transid; member
175 inode->last_trans = trans->transaction->transid; in btrfs_set_inode_last_trans()
216 int btrfs_wait_for_commit(struct btrfs_fs_info *fs_info, u64 transid);
Dctree.c191 trans->transid != fs_info->running_transaction->transid); in btrfs_copy_root()
193 trans->transid != root->last_trans); in btrfs_copy_root()
209 btrfs_set_header_generation(cow, trans->transid); in btrfs_copy_root()
220 WARN_ON(btrfs_header_generation(buf) > trans->transid); in btrfs_copy_root()
401 trans->transid != fs_info->running_transaction->transid); in __btrfs_cow_block()
403 trans->transid != root->last_trans); in __btrfs_cow_block()
425 btrfs_set_header_generation(cow, trans->transid); in __btrfs_cow_block()
475 WARN_ON(trans->transid != btrfs_header_generation(parent)); in __btrfs_cow_block()
481 trans->transid); in __btrfs_cow_block()
524 if (btrfs_header_generation(buf) == trans->transid && in should_cow_block()
[all …]
Dtree-log.h53 WRITE_ONCE(trans->fs_info->last_trans_log_full_commit, trans->transid); in btrfs_set_log_full_commit()
59 trans->transid; in btrfs_need_log_full_commit()
Dtree-log.c108 static void wait_log_commit(struct btrfs_root *root, int transid);
578 trans->transid); in overwrite_item()
2982 static void wait_log_commit(struct btrfs_root *root, int transid) in wait_log_commit() argument
2985 int index = transid % 2; in wait_log_commit()
2996 if (!(root->log_transid_committed < transid && in wait_log_commit()
3459 if (inode->logged_trans == trans->transid) in inode_logged()
3472 inode->last_trans == trans->transid && in inode_logged()
3671 ret = btrfs_search_forward(root, &min_key, path, trans->transid); in log_dir_items()
3790 (btrfs_dir_transid(src, di) == trans->transid || in log_dir_items()
3814 if (btrfs_header_generation(path->nodes[0]) != trans->transid) { in log_dir_items()
[all …]
Dfile.c48 u64 transid; member
108 if (defrag->transid < entry->transid) in __btrfs_add_inode_defrag()
109 entry->transid = defrag->transid; in __btrfs_add_inode_defrag()
142 u64 transid; in btrfs_add_inode_defrag() local
152 transid = trans->transid; in btrfs_add_inode_defrag()
154 transid = inode->root->last_trans; in btrfs_add_inode_defrag()
161 defrag->transid = transid; in btrfs_add_inode_defrag()
305 num_defrag = btrfs_defrag_file(inode, NULL, &range, defrag->transid, in __btrfs_run_defrag_inode()
1164 trans->transid); in btrfs_mark_extent_written()
1172 trans->transid); in btrfs_mark_extent_written()
[all …]
Dioctl.c589 btrfs_set_root_generation(root_item, trans->transid); in create_subvol()
601 btrfs_set_root_ctransid(root_item, trans->transid); in create_subvol()
602 btrfs_set_root_otransid(root_item, trans->transid); in create_subvol()
2168 sh.transid = found_transid; in copy_to_sk()
3688 u64 transid; in btrfs_ioctl_start_sync() local
3697 transid = root->fs_info->last_trans_committed; in btrfs_ioctl_start_sync()
3700 transid = trans->transid; in btrfs_ioctl_start_sync()
3708 if (copy_to_user(argp, &transid, sizeof(transid))) in btrfs_ioctl_start_sync()
3716 u64 transid; in btrfs_ioctl_wait_sync() local
3719 if (copy_from_user(&transid, argp, sizeof(transid))) in btrfs_ioctl_wait_sync()
[all …]
Ddisk-io.c1064 fs_info->running_transaction->transid) { in btrfs_clean_tree_block()
1224 btrfs_set_root_generation(&root->root_item, trans->transid); in btrfs_create_tree()
1341 log_root->last_trans = trans->transid; in btrfs_add_log_tree()
1867 u64 transid; in transaction_kthread() local
1893 transid = cur->transid; in transaction_kthread()
1903 if (transid == trans->transid) { in transaction_kthread()
3792 u64 transid = 0; in btrfs_read_dev_super() local
3804 if (!latest || btrfs_super_generation(super) > transid) { in btrfs_read_dev_super()
3809 transid = btrfs_super_generation(super); in btrfs_read_dev_super()
4541 u64 transid = btrfs_header_generation(buf); in btrfs_mark_buffer_dirty() local
[all …]
Ddir-item.c88 btrfs_set_dir_transid(leaf, dir_item, trans->transid); in btrfs_insert_xattr_item()
148 btrfs_set_dir_transid(leaf, dir_item, trans->transid); in btrfs_insert_dir_item()
Dreflink.c531 if (extent_gen == trans->transid && disko > 0) { in btrfs_clone()
532 BTRFS_I(src)->last_reflink_trans = trans->transid; in btrfs_clone()
533 BTRFS_I(inode)->last_reflink_trans = trans->transid; in btrfs_clone()
Drelocation.c248 cache->last_trans = trans->transid; in update_backref_cache()
252 if (cache->last_trans == trans->transid) in update_backref_cache()
337 root->fs_info->running_transaction->transid) in btrfs_should_ignore_reloc_root()
791 btrfs_set_root_generation(root_item, trans->transid); in create_reloc_root()
816 reloc_root->last_trans = trans->transid; in create_reloc_root()
863 reloc_root->last_trans = trans->transid; in btrfs_init_reloc_root()
1767 reloc_root->last_trans = trans->transid; in merge_reloc_root()
2110 if (reloc_root->last_trans == trans->transid) in record_reloc_root_in_trans()
2507 trans->transid); in do_relocation()
Dqgroup.c674 btrfs_set_qgroup_info_generation(leaf, qgroup_info, trans->transid); in add_qgroup_item()
828 btrfs_set_qgroup_info_generation(l, qgroup_info, trans->transid); in update_qgroup_info_item()
871 btrfs_set_qgroup_status_generation(l, ptr, trans->transid); in update_qgroup_status_item()
1034 btrfs_set_qgroup_status_generation(leaf, ptr, trans->transid); in btrfs_quota_enable()
2653 trace_btrfs_qgroup_account_extent(fs_info, trans->transid, bytenr, in btrfs_qgroup_account_extent()
2777 trace_qgroup_num_dirty_extents(fs_info, trans->transid, in btrfs_qgroup_account_extents()
Droot-tree.c481 btrfs_set_root_ctransid(item, trans->transid); in btrfs_update_root_times()
Dblock-group.c2580 u64 transid = trans->transid; in btrfs_inc_block_group_ro() local
2585 ret = btrfs_wait_for_commit(fs_info, transid); in btrfs_inc_block_group_ro()
2786 if (block_group->cache_generation == trans->transid && in cache_save_setup()
2868 block_group->cache_generation = trans->transid; in cache_save_setup()
Dfree-space-cache.c161 btrfs_set_inode_generation(leaf, inode_item, trans->transid); in __create_free_space_inode()
169 btrfs_set_inode_transid(leaf, inode_item, trans->transid); in __create_free_space_inode()
1131 BTRFS_I(inode)->generation = trans->transid; in update_cache_item()
1136 btrfs_set_free_space_generation(leaf, header, trans->transid); in update_cache_item()
1370 io_ctl_set_generation(io_ctl, trans->transid); in __btrfs_write_out_cache()
Ddelayed-inode.c1387 btrfs_set_stack_dir_transid(dir_item, trans->transid); in btrfs_insert_delayed_dir_index()
1675 btrfs_set_stack_inode_transid(inode_item, trans->transid); in fill_stack_inode_item()
Dextent-tree.c3298 if (last_ref && btrfs_header_generation(buf) == trans->transid) { in btrfs_free_tree_block()
4587 btrfs_set_extent_generation(leaf, extent_item, trans->transid); in alloc_reserved_file_extent()
4671 btrfs_set_extent_generation(leaf, extent_item, trans->transid); in alloc_reserved_tree_block()
4819 btrfs_set_header_generation(buf, trans->transid); in btrfs_init_new_buffer()
4838 btrfs_set_header_generation(buf, trans->transid); in btrfs_init_new_buffer()
5459 btrfs_header_generation(eb) == trans->transid) { in walk_up_proc()
Dctree.h1831 BTRFS_SETGET_FUNCS(inode_transid, struct btrfs_inode_item, transid, 64);
1846 transid, 64);
2048 BTRFS_SETGET_FUNCS(dir_transid, struct btrfs_dir_item, transid, 64);
2055 transid, 64);
Dinode.c273 btrfs_set_file_extent_generation(leaf, ei, trans->transid); in insert_inline_extent()
2944 btrfs_set_stack_file_extent_generation(stack_fi, trans->transid); in insert_reserved_file_extent()
3143 ordered_extent->num_bytes, trans->transid); in btrfs_finish_ordered_io()
4015 btrfs_set_token_inode_transid(&token, item, trans->transid); in fill_inode_item()
4674 if (last_unlink_trans >= trans->transid) in btrfs_rmdir()
6605 BTRFS_I(inode)->generation = trans->transid; in btrfs_new_inode()
10296 btrfs_set_file_extent_generation(leaf, ei, trans->transid); in btrfs_symlink()
10493 em->generation = trans->transid; in __btrfs_prealloc_file_range()
Dfile-item.c166 btrfs_set_file_extent_generation(leaf, item, trans->transid); in btrfs_insert_file_extent()
Dvolumes.c2709 device->generation = trans->transid; in btrfs_init_new_device()
/fs/btrfs/tests/
Dbtrfs-tests.c253 trans->transid = 1; in btrfs_init_dummy_trans()