Defined in 1 files as a function:
Referenced in 10 files:
- fs/buffer.c
- fs/ext4/move_extent.c
- fs/ext4/page-io.c
- fs/gfs2/lops.c
- fs/gfs2/meta_io.c
- fs/jbd2/commit.c
- fs/jbd2/transaction.c, line 924
- fs/nilfs2/bmap.c, line 435
- fs/nilfs2/page.c
- mm/migrate.c, line 1004
Smatch caller information:
fs/jbd2/transaction.c jbd2_freeze_jh_data() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &jh->b_state_lock | ||
| TYPE_LOCK | (struct journal_head)->b_state_lock |
fs/jbd2/commit.c jbd2_block_tag_csum_set() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| DATA_SOURCE | 0 | bh | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/jbd2/commit.c jbd2_checksum_data() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| DATA_SOURCE | 0 | bh | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/ext4/move_extent.c mext_folio_mkuptodate() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | bh | (-1)-s32max |
| BUF_SIZE | 0 | bh | (-1)-s32max |
| NO_OVERFLOW_SIMPLE | 0 | bh->b_size |
fs/ext4/move_extent.c mext_folio_mkuptodate() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| BUF_SIZE | 0 | bh | (-1)-s32max |
| BUF_SIZE | 0 | bh | (-1)-s32max |
| NO_OVERFLOW_SIMPLE | 0 | bh->b_size |
fs/nilfs2/page.c nilfs_copy_buffer() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| DATA_SOURCE | 0 | bh | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | bh->b_size | |
| LOCK2 | &btree->b_sem | ||
| TYPE_LOCK | (struct nilfs_bmap)->b_sem |
fs/nilfs2/page.c nilfs_copy_buffer() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| BUF_SIZE | 0 | bh | (-1)-s32max |
| BUF_SIZE | 0 | bh | (-1)-s32max |
| DATA_SOURCE | 0 | bh | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | bh->b_size | |
| LOCK2 | &btree->b_sem | ||
| TYPE_LOCK | (struct nilfs_bmap)->b_sem |
fs/nilfs2/bmap.c nilfs_bmap_data_get_key() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| DATA_SOURCE | 0 | bh | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &bmap->b_sem | ||
| TYPE_LOCK | (struct nilfs_bmap)->b_sem |
fs/gfs2/meta_io.c gfs2_meta_read_endio() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | bh | (-1),1-s32max |
| BUF_SIZE | 0 | bh | (-1),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/gfs2/meta_io.c gfs2_meta_read_endio() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/gfs2/meta_io.c gfs2_submit_bhs() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &sdp->sd_log_flush_lock |
fs/gfs2/lops.c gfs2_before_commit() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &sdp->sd_log_flush_lock | ||
| TYPE_LOCK | (struct gfs2_sbd)->sd_log_flush_lock |
fs/gfs2/lops.c gfs2_check_magic() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| DATA_SOURCE | 0 | bh | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &sdp->sd_log_flush_lock | ||
| LOCK2 | &sdp->sd_log_lock | ||
| TYPE_LOCK | (struct gfs2_sbd)->sd_log_flush_lock | ||
| TYPE_LOCK | (struct gfs2_sbd)->sd_log_lock |
fs/gfs2/lops.c gfs2_end_log_write_bh() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | bh | (-1),1-s32max |
| BUF_SIZE | 0 | bh | (-1),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/gfs2/lops.c gfs2_end_log_write_bh() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/gfs2/lops.c gfs2_log_write_bh() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| DATA_SOURCE | 0 | bh | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &sdp->sd_log_flush_lock | ||
| TYPE_LOCK | (struct gfs2_sbd)->sd_log_flush_lock |
fs/buffer.c __bh_submit() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| BUF_SIZE | 0 | bh | (-1)-s32max |
| BUF_SIZE | 0 | bh | (-1)-s32max |
| BUF_SIZE | 0 | bh->b_private | (-1),352,520 |
| CAPPED_DATA | 0 | bh | 1 |
| DATA_SOURCE | 0 | bh | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | bh->b_folio->index | |
| NO_OVERFLOW_SIMPLE | 0 | bh->b_size | |
| USER_PTR | 0 | bh->b_data |
fs/buffer.c block_read_full_folio() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| BUF_SIZE | 0 | bh | (-1)-s32max |
| BUF_SIZE | 0 | bh | (-1)-s32max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | bh->b_size | |
| HALF_LOCKED2 | &oi->ip_alloc_sem |
fs/buffer.c buffer_set_crypto_ctx() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| BUF_SIZE | 0 | bh | (-1)-s32max |
| BUF_SIZE | 0 | bh | (-1)-s32max |
| BUF_SIZE | 0 | bh->b_private | (-1),352,520 |
| DATA_SOURCE | 0 | bh | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | bh->b_folio->index | |
| NO_OVERFLOW_SIMPLE | 0 | bh->b_size | |
| USER_PTR | 0 | bh->b_data |
fs/buffer.c verify_bh() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| HALF_LOCKED2 | &pool->lock |
mm/migrate.c __buffer_migrate_folio() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | bh | (-1),1-s32max |
| BUF_SIZE | 0 | bh | (-1),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/ext4/page-io.c ext4_bio_write_folio() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/ext4/page-io.c ext4_finish_bio() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &head->b_uptodate_lock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct buffer_head)->b_uptodate_lock |
fs/ext4/page-io.c ext4_finish_bio() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &head->b_uptodate_lock | ||
| LOCK2 | flags | ||
| TYPE_LOCK | (struct buffer_head)->b_uptodate_lock |
fs/ext4/page-io.c io_submit_add_bh() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| DATA_SOURCE | 0 | bh | $3 |
fs/ext4/page-io.c io_submit_init_bio() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| DATA_SOURCE | 0 | bh | $3 |
fs/ext4/page-io.c io_submit_need_new_bio() -> bh_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | bh | 4096-ptr_max |
| CAPPED_DATA | 0 | bh->b_blocknr | 1 |
| DATA_SOURCE | 0 | bh | $3 |