Defined in 1 files as a prototype:
Defined in 2 files as a function:
- include/linux/percpu_counter.h, line 182 (as a function)
- lib/percpu_counter.c, line 292 (as a function)
Referenced in 6 files:
- fs/btrfs/disk-io.c, line 4648
- fs/xfs/xfs_mount.c
- fs/xfs/xfs_mount.h, line 754
- include/linux/percpu_counter.h, line 66
- kernel/bpf/hashtab.c, line 976
- lib/percpu_counter.c, line 313
Smatch caller information:
mm/shmem.c percpu_counter_compare() -> __percpu_counter_compare()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| PARAM_VALUE | 1 | rhs | s64min-(-1),1-s64max |
| DATA_SOURCE | 0 | fbc | $0 |
| DATA_SOURCE | 1 | rhs | $1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &sbinfo->stat_lock | ||
| HALF_LOCKED2 | &fc->uapi_mutex | ||
| HALF_LOCKED2 | &sb->s_umount | ||
| TYPE_LOCK | (struct shmem_sb_info)->stat_lock |
fs/btrfs/disk-io.c __btrfs_btree_balance_dirty() -> __percpu_counter_compare()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| PARAM_VALUE | 1 | rhs | 33554432 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/eventpoll.c percpu_counter_compare() -> __percpu_counter_compare()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| DATA_SOURCE | 0 | fbc | $0 |
| DATA_SOURCE | 1 | rhs | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/xfs/libxfs/xfs_metafile.c xfs_compare_freecounter() -> __percpu_counter_compare()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | rhs | s64min-(-1),1-s64max |
| PARAM_VALUE | 2 | batch | 2048 |
| DATA_SOURCE | 1 | rhs | $2 |
| DATA_SOURCE | 2 | batch | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &inode_out->i_rwsem |
fs/xfs/xfs_icache.c xfs_compare_freecounter() -> __percpu_counter_compare()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | batch | 1024 |
| DATA_SOURCE | 1 | rhs | $2 |
| DATA_SOURCE | 2 | batch | $3 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/xfs/xfs_mount.c xfs_dec_freecounter() -> __percpu_counter_compare()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| PARAM_VALUE | 1 | rhs | 2048 |
| PARAM_VALUE | 2 | batch | 1024 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &zi->zi_reservation_lock |
fs/xfs/xfs_mount.c xfs_dec_freecounter() -> __percpu_counter_compare()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| PARAM_VALUE | 0 | fbc->counters | 4096-ptr_max |
| PARAM_VALUE | 2 | batch | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &zi->zi_reservation_lock |
kernel/bpf/hashtab.c is_map_full() -> __percpu_counter_compare()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | fbc | 4096-ptr_max |
| PARAM_VALUE | 2 | batch | 32 |
| PREEMPT_ADD | |||
| UNITS | 1 | rhs | unit_byte |
| LOCK2 | flags | ||
| HALF_LOCKED2 | rcu_read |