Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/btrfs/relocation.c merge_reloc_root() -> replace_path()

Type Parameter Key Value
PARAM_VALUE 0 trans 4096-ptr_max
PARAM_VALUE 0 trans->block_rsv 0,4096-ptr_max
PARAM_VALUE 1 rc 4096-ptr_max
PARAM_VALUE 1 rc->block_rsv 0,4096-ptr_max
PARAM_VALUE 1 rc->extent_root 4096-ptr_max
PARAM_VALUE 1 rc->extent_root->fs_info 4096-ptr_max
PARAM_VALUE 2 dest 4096-ptr_max
PARAM_VALUE 2 dest->fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->encode_fh 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max
PARAM_VALUE 2 dest->fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->fh_to_parent 0,4672,5297,4573560380487,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000-s64max
PARAM_VALUE 2 dest->fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->get_parent 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max
PARAM_VALUE 2 dest->node->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 2 dest->node->lock.first_waiter->type 0-1
PARAM_VALUE 3 src 4096-ptr_max
PARAM_VALUE 4 path 4096-ptr_max
PARAM_VALUE 4 path->nodes 4096-ptr_max
PARAM_VALUE 4 path->slots 4096-ptr_max
PARAM_VALUE 4 *path->locks 0-255
PARAM_VALUE 4 *path->slots s32min-s32max
PARAM_VALUE 5 next_key 720205457050013696
PARAM_VALUE 5 next_key->objectid 0
PARAM_VALUE 5 next_key->offset 0
PARAM_VALUE 5 next_key->type 0
PARAM_VALUE 6 lowest_level 1-255
PARAM_VALUE 7 max_level 0-255
BUF_SIZE 2 dest (-1),2888
BUF_SIZE 2 dest (-1),2888
CAPPED_DATA 7 max_level 1
DATA_SOURCE 0 trans r btrfs_start_transaction
DATA_SOURCE 1 rc $0
DATA_SOURCE 2 dest $1
DATA_SOURCE 4 path r btrfs_alloc_path
MEM_ZERO 5 next_key
NO_OVERFLOW_SIMPLE 6 lowest_level
NO_OVERFLOW_SIMPLE 7 max_level

fs/fs_struct.c chroot_fs_refs() -> replace_path()

Type Parameter Key Value
PARAM_VALUE 0 trans 152,4096-ptr_max
PARAM_VALUE 1 rc 3328856821100011520
PARAM_VALUE 1 rc->mnt 4096-ptr_max
PARAM_VALUE 2 dest 974911601717030912,1195093872740364288
CAPPED_DATA 1 rc->mnt 1
CAPPED_DATA 2 dest->dentry 1
CAPPED_DATA 2 dest->mnt 1
CAPPED_DATA 2 dest->mnt->mnt_root 1
DATA_SOURCE 1 rc $0
DATA_SOURCE 2 dest $1
PREEMPT_ADD <- disables preempt
LOCK2 &fs->seq.lock
LOCK2 &p->alloc_lock
LOCK2 global &tasklist_lock
TYPE_LOCK (struct seqlock)->lock
TYPE_LOCK (struct task_struct)->alloc_lock

fs/fs_struct.c chroot_fs_refs() -> replace_path()

Type Parameter Key Value
PARAM_VALUE 0 trans 168,4096-ptr_max
PARAM_VALUE 1 rc 3328856821100011520
PARAM_VALUE 1 rc->mnt 4096-ptr_max
PARAM_VALUE 2 dest 974911601717030912,1195093872740364288
CAPPED_DATA 1 rc->mnt 1
CAPPED_DATA 2 dest->dentry 1
CAPPED_DATA 2 dest->mnt 1
CAPPED_DATA 2 dest->mnt->mnt_root 1
DATA_SOURCE 1 rc $0
DATA_SOURCE 2 dest $1
PREEMPT_ADD <- disables preempt
LOCK2 &fs->seq.lock
LOCK2 &p->alloc_lock
LOCK2 global &tasklist_lock
TYPE_LOCK (struct seqlock)->lock
TYPE_LOCK (struct task_struct)->alloc_lock