Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

fs/btrfs/relocation.c record_reloc_root_in_trans() -> btrfs_get_root_last_trans()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
DATA_SOURCE 0 root $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->cleaner_mutex
HALF_LOCKED2 &cow->lock
HALF_LOCKED2 &eb->lock
HALF_LOCKED2 &fs_info->reclaim_bgs_lock
TYPE_LOCK (struct btrfs_fs_info)->cleaner_mutex
TYPE_LOCK (struct btrfs_fs_info)->reclaim_bgs_lock

fs/btrfs/defrag.c btrfs_add_inode_defrag() -> btrfs_get_root_last_trans()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

fs/btrfs/transaction.c btrfs_record_root_in_trans() -> btrfs_get_root_last_trans()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
BUF_SIZE 0 root (-1),2888
BUF_SIZE 0 root (-1),2888
DATA_SOURCE 0 root $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fs_info->cleaner_mutex
HALF_LOCKED2 &fs_info->subvol_sem

fs/btrfs/transaction.c record_root_in_trans() -> btrfs_get_root_last_trans()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
BUF_SIZE 0 root (-1),2888
BUF_SIZE 0 root (-1),2888
DATA_SOURCE 0 root $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->reloc_mutex
HALF_LOCKED2 &cow->lock
HALF_LOCKED2 &fs_info->cleaner_mutex
HALF_LOCKED2 &fs_info->subvol_sem
TYPE_LOCK (struct btrfs_fs_info)->reloc_mutex

fs/btrfs/transaction.c record_root_in_trans() -> btrfs_get_root_last_trans()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
BUF_SIZE 0 root (-1),2888
BUF_SIZE 0 root (-1),2888
DATA_SOURCE 0 root $1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->fs_roots_radix_lock
LOCK2 &fs_info->reloc_mutex
HALF_LOCKED2 &cow->lock
HALF_LOCKED2 &fs_info->cleaner_mutex
HALF_LOCKED2 &fs_info->subvol_sem
TYPE_LOCK (struct btrfs_fs_info)->fs_roots_radix_lock
TYPE_LOCK (struct btrfs_fs_info)->reloc_mutex

fs/btrfs/ctree.c btrfs_copy_root() -> btrfs_get_root_last_trans()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
BUF_SIZE 0 root (-1),2888
BUF_SIZE 0 root (-1),2888
CAPPED_DATA 0 root 1
DATA_SOURCE 0 root $1
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 root->root_item.flags
HALF_LOCKED2 &fs_info->reloc_mutex

fs/btrfs/ctree.c btrfs_force_cow_block() -> btrfs_get_root_last_trans()

Type Parameter Key Value
PARAM_VALUE 0 root 4096-ptr_max
BUF_SIZE 0 root (-1),2888
BUF_SIZE 0 root (-1),2888
CAPPED_DATA 0 root 1
DATA_SOURCE 0 root $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 root->dirty_log_pages.inode->disk_i_size
NO_OVERFLOW_SIMPLE 0 root->dirty_log_pages.inode->vfs_inode.i_bytes
NO_OVERFLOW_SIMPLE 0 root->dirty_log_pages.inode->vfs_inode.i_size
NO_OVERFLOW_SIMPLE 0 root->log_csum_range.inode->vfs_inode.i_bytes
NO_OVERFLOW_SIMPLE 0 root->node->start
HALF_LOCKED2 &buf->lock