Defined in 1 files as a function:
Referenced in 5 files:
- fs/btrfs/block-group.c, line 2295
- fs/btrfs/scrub.c
- fs/btrfs/tree-checker.c
- fs/btrfs/volumes.c
- fs/btrfs/zoned.c
Smatch caller information:
fs/btrfs/volumes.c btrfs_full_stripe_len() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fs_info->chunk_mutex |
fs/btrfs/volumes.c btrfs_map_block() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev_replace->rwsem | ||
| HALF_LOCKED2 | &sctx->wr_lock |
fs/btrfs/volumes.c btrfs_map_block() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | stripe_nr | unit_array_size |
| HALF_LOCKED2 | &dev_replace->rwsem | ||
| HALF_LOCKED2 | &sctx->wr_lock |
fs/btrfs/volumes.c btrfs_map_discard() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fs_info->reclaim_bgs_lock | ||
| HALF_LOCKED2 | &fs_info->unused_bg_unpin_mutex |
fs/btrfs/volumes.c btrfs_map_discard() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | stripe_nr | 0-u32max[c] |
| HALF_LOCKED2 | &fs_info->reclaim_bgs_lock | ||
| HALF_LOCKED2 | &fs_info->unused_bg_unpin_mutex |
fs/btrfs/volumes.c btrfs_map_discard() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fs_info->reclaim_bgs_lock | ||
| HALF_LOCKED2 | &fs_info->unused_bg_unpin_mutex |
fs/btrfs/volumes.c btrfs_map_discard() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &fs_info->reclaim_bgs_lock | ||
| HALF_LOCKED2 | &fs_info->unused_bg_unpin_mutex |
fs/btrfs/volumes.c btrfs_max_io_len() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &sctx->wr_lock |
fs/btrfs/volumes.c btrfs_max_io_len() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &sctx->wr_lock |
fs/btrfs/volumes.c init_alloc_chunk_ctl_policy_regular() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | stripe_nr | 1-2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &fs_info->chunk_mutex | ||
| HALF_LOCKED2 | &sb->s_umount | ||
| HALF_LOCKED2 | global &uuid_mutex | ||
| TYPE_LOCK | (struct btrfs_fs_info)->chunk_mutex |
fs/btrfs/volumes.c map_blocks_raid56_write() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| CAPPED_DATA | 0 | stripe_nr | 1 |
| DATA_SOURCE | 0 | stripe_nr | r nr_data_stripes |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev_replace->rwsem | ||
| HALF_LOCKED2 | &sctx->wr_lock |
fs/btrfs/volumes.c map_raid56_repair_block() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | stripe_nr | 0-s32max |
| CAPPED_DATA | 0 | stripe_nr | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/btrfs/volumes.c set_io_stripe() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | stripe_nr | unit_array_size |
| HALF_LOCKED2 | &dev_replace->rwsem | ||
| HALF_LOCKED2 | &sctx->wr_lock |
fs/btrfs/scrub.c get_raid56_logic_offset() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | stripe_nr | 0-s32max |
| CAPPED_DATA | 0 | stripe_nr | 1 |
fs/btrfs/scrub.c get_raid56_logic_offset() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | stripe_nr | 0-s32max |
fs/btrfs/scrub.c scrub_raid56_cached_parity() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | stripe_nr | r nr_data_stripes |
fs/btrfs/scrub.c scrub_raid56_parity_stripe() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|
fs/btrfs/scrub.c scrub_raid56_parity_stripe() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | stripe_nr | 0-s32max |
| CAPPED_DATA | 0 | stripe_nr | 1 |
fs/btrfs/scrub.c scrub_raid56_parity_stripe() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | stripe_nr | 0-s32max |
| CAPPED_DATA | 0 | stripe_nr | 1 |
fs/btrfs/scrub.c scrub_stripe() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|
fs/btrfs/scrub.c scrub_stripe() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|
fs/btrfs/scrub.c simple_stripe_full_stripe_len() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD |
fs/btrfs/scrub.c simple_stripe_get_logical() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD |
fs/btrfs/scrub.c submit_initial_group_read() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | stripe_nr | $2 |
| PREEMPT_ADD |
fs/btrfs/block-group.c btrfs_rmap_block() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/btrfs/zoned.c btrfs_load_block_group_raid0() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/btrfs/zoned.c btrfs_load_block_group_raid10() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/btrfs/tree-checker.c btrfs_check_chunk_valid() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | stripe_nr | u32max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/btrfs/tree-checker.c btrfs_check_chunk_valid() -> btrfs_stripe_nr_to_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | stripe_nr | u32max |
| RX_PATH | |||
| TASK_NOT_RUNNING |