Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 10 files:
- drivers/dax/super.c, line 272
- drivers/md/dm-linear.c, line 177
- drivers/md/dm-log-writes.c, line 901
- drivers/md/dm-pcache/cache_dev.c
- drivers/md/dm-stripe.c, line 323
- drivers/md/dm-writecache.c
- drivers/s390/block/dcssblk.c, line 52
- fs/dax.c
- fs/fuse/dax.c, line 1211
- fs/fuse/virtio_fs.c, line 1050
Smatch caller information:
drivers/md/dm-log-writes.c log_writes_dax_direct_access() -> dax_direct_access()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | nr_pages | 0-s64max |
| CAPPED_DATA | 2 | nr_pages | 1 |
| CAPPED_DATA | 2 | nr_pages | 1 |
| DATA_SOURCE | 0 | dax_dev | r log_writes_dax_pgoff |
| DATA_SOURCE | 1 | pgoff | $1 [m] |
| DATA_SOURCE | 2 | nr_pages | $2 |
| DATA_SOURCE | 3 | mode | $3 |
| DATA_SOURCE | 4 | kaddr | $4 |
| DATA_SOURCE | 5 | pfn | $5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | pgoff | 0-2310346608841064446[c] |
| USER_DATA | 2 | nr_pages | 1-2251799814209536[c] |
| LOCK2 | &md->io_barrier | ||
| HALF_LOCKED2 | global &dax_srcu | ||
| TYPE_LOCK | (struct mapped_device)->io_barrier |
fs/dax.c copy_cow_page_dax() -> dax_direct_access()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pgoff | 0-4503599627370495 |
| PARAM_VALUE | 2 | nr_pages | 1 |
| PARAM_VALUE | 3 | mode | 0 |
| PARAM_VALUE | 4 | kaddr | 2104359821291184128 |
| PARAM_VALUE | 5 | pfn | 0 |
| DATA_SOURCE | 1 | pgoff | r dax_iomap_pgoff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | pgoff | 0-4503599627370495[c] |
| LOCK2 | global &dax_srcu | ||
| HALF_LOCKED2 | &inode->i_mapping->invalidate_lock | ||
| HALF_LOCKED2 | &mapping->invalidate_lock |
fs/dax.c dax_iomap_direct_access() -> dax_direct_access()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pgoff | 0-4503599627370495 |
| PARAM_VALUE | 2 | nr_pages | 0-4503599627370495 |
| PARAM_VALUE | 3 | mode | 0 |
| PARAM_VALUE | 4 | kaddr | 2101521066757193728,3384696097539080192,3403337309017604096,5287151188564549632,6648384121438765056,6709230259497693184 |
| PARAM_VALUE | 5 | pfn | 0,8872733227602259968 |
| DATA_SOURCE | 1 | pgoff | r dax_iomap_pgoff |
| DATA_SOURCE | 4 | kaddr | $3 |
| DATA_SOURCE | 5 | pfn | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | pgoff | 0-4503599627370495[c] |
| USER_DATA | 2 | nr_pages | 1-2251799814209536[c] |
| LOCK2 | global &dax_srcu |
fs/dax.c dax_iomap_iter() -> dax_direct_access()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pgoff | 0-4503599627370495 |
| PARAM_VALUE | 2 | nr_pages | 0-4503599627370495 |
| PARAM_VALUE | 3 | mode | 0 |
| PARAM_VALUE | 4 | kaddr | 357705429230788608 |
| PARAM_VALUE | 5 | pfn | 0 |
| DATA_SOURCE | 1 | pgoff | r dax_iomap_pgoff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | pgoff | 0-4503599627370495[c] |
| USER_DATA | 2 | nr_pages | 1-524289[c] |
| LOCK2 | global &dax_srcu | ||
| HALF_LOCKED2 | &inode->i_rwsem |
fs/dax.c dax_iomap_iter() -> dax_direct_access()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dax_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | pgoff | 0-4503599627370495 |
| PARAM_VALUE | 2 | nr_pages | 0-4503599627370495 |
| PARAM_VALUE | 3 | mode | 1 |
| PARAM_VALUE | 4 | kaddr | 357705429230788608 |
| PARAM_VALUE | 5 | pfn | 0 |
| DATA_SOURCE | 1 | pgoff | r dax_iomap_pgoff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | pgoff | 0-4503599627370495[c] |
| USER_DATA | 2 | nr_pages | 1-524289[c] |
| LOCK2 | global &dax_srcu | ||
| HALF_LOCKED2 | &inode->i_rwsem |
fs/dax.c dax_memzero() -> dax_direct_access()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pgoff | 0-4503599627370495 |
| PARAM_VALUE | 2 | nr_pages | 1 |
| PARAM_VALUE | 3 | mode | 0 |
| PARAM_VALUE | 4 | kaddr | 8179218262147887104 |
| PARAM_VALUE | 5 | pfn | 0 |
| DATA_SOURCE | 1 | pgoff | r dax_iomap_pgoff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | pgoff | 0-4503599627370495[c] |
| LOCK2 | global &dax_srcu |
fs/fuse/dax.c fuse_dax_mem_range_init() -> dax_direct_access()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dax_dev | 1-u64max |
| PARAM_VALUE | 1 | pgoff | 0 |
| PARAM_VALUE | 2 | nr_pages | 4503599627370495 |
| PARAM_VALUE | 3 | mode | 0 |
| PARAM_VALUE | 4 | kaddr | 0 |
| PARAM_VALUE | 5 | pfn | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &dax_srcu | ||
| HALF_LOCKED2 | &fsc->uapi_mutex | ||
| HALF_LOCKED2 | &sb->s_umount | ||
| HALF_LOCKED2 | global &virtio_fs_mutex |
drivers/md/dm-pcache/cache_dev.c build_vmap() -> dax_direct_access()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dax_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | pgoff | 0-4503599627370494 |
| PARAM_VALUE | 2 | nr_pages | 1-4503599627370495 |
| PARAM_VALUE | 3 | mode | 0 |
| PARAM_VALUE | 4 | kaddr | 0 |
| PARAM_VALUE | 5 | pfn | 1349135330462261248 |
| CAPPED_DATA | 1 | pgoff | 1 |
| CAPPED_DATA | 2 | nr_pages | 1 |
| DATA_SOURCE | 0 | dax_dev | $0 |
| UNITS | 1 | pgoff | unit_page |
| UNITS | 2 | nr_pages | unit_page |
| LOCK2 | global &dax_srcu | ||
| HALF_LOCKED2 | &md->type_lock |
drivers/md/dm-pcache/cache_dev.c cache_dev_dax_init() -> dax_direct_access()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pgoff | 0 |
| PARAM_VALUE | 2 | nr_pages | 131072-4503599627370495 |
| PARAM_VALUE | 3 | mode | 0 |
| PARAM_VALUE | 4 | kaddr | 4564688338589057024 |
| PARAM_VALUE | 5 | pfn | 3709817951012507648 |
| UNITS | 2 | nr_pages | unit_page |
| LOCK2 | global &dax_srcu |
drivers/md/dm-writecache.c persistent_memory_claim() -> dax_direct_access()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pgoff | 0-2305843009213693951 |
| PARAM_VALUE | 2 | nr_pages | (-2251799813685248)-(-1),1-2251799813685247 |
| PARAM_VALUE | 3 | mode | 0 |
| PARAM_VALUE | 4 | kaddr | 4096-ptr_max |
| PARAM_VALUE | 5 | pfn | 9074279782393520128 |
| CAPPED_DATA | 2 | nr_pages | 1 |
| CAPPED_DATA | 2 | nr_pages | 1 |
| UNITS | 1 | pgoff | unit_byte |
| UNITS | 2 | nr_pages | unit_page |
| LOCK2 | global &dax_srcu |
drivers/md/dm-writecache.c persistent_memory_claim() -> dax_direct_access()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dax_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | pgoff | 0-2308094809027379197 |
| PARAM_VALUE | 2 | nr_pages | 1-2251799813685247 |
| PARAM_VALUE | 3 | mode | 0 |
| PARAM_VALUE | 4 | kaddr | 0 |
| PARAM_VALUE | 5 | pfn | 9074279782393520128 |
| CAPPED_DATA | 1 | pgoff | 1 |
| CAPPED_DATA | 2 | nr_pages | 1 |
| UNITS | 1 | pgoff | unit_byte |
| UNITS | 2 | nr_pages | unit_page |
| LOCK2 | global &dax_srcu |
fs/fuse/virtio_fs.c virtio_fs_zero_page_range() -> dax_direct_access()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dax_dev | 4096-ptr_max |
| PARAM_VALUE | 1 | pgoff | 0-2305843009213693951 |
| PARAM_VALUE | 2 | nr_pages | 1 |
| PARAM_VALUE | 3 | mode | 0 |
| PARAM_VALUE | 4 | kaddr | 5992687646788923392 |
| PARAM_VALUE | 5 | pfn | 0 |
| DATA_SOURCE | 0 | dax_dev | $0 |
| DATA_SOURCE | 1 | pgoff | $1 |
| DATA_SOURCE | 2 | nr_pages | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | pgoff | 0-4503599627370495[c] |
| HALF_LOCKED2 | global &dax_srcu |
drivers/md/dm-linear.c linear_dax_direct_access() -> dax_direct_access()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pgoff | 0-2305843009213693951 |
| PARAM_VALUE | 2 | nr_pages | 0-s64max |
| CAPPED_DATA | 2 | nr_pages | 1 |
| CAPPED_DATA | 2 | nr_pages | 1 |
| DATA_SOURCE | 0 | dax_dev | r linear_dax_pgoff |
| DATA_SOURCE | 1 | pgoff | $1 [m] |
| DATA_SOURCE | 2 | nr_pages | $2 |
| DATA_SOURCE | 3 | mode | $3 |
| DATA_SOURCE | 4 | kaddr | $4 |
| DATA_SOURCE | 5 | pfn | $5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | nr_pages | 1-2251799814209536[c] |
| LOCK2 | &md->io_barrier | ||
| HALF_LOCKED2 | global &dax_srcu | ||
| TYPE_LOCK | (struct mapped_device)->io_barrier |
drivers/md/dm-stripe.c stripe_dax_direct_access() -> dax_direct_access()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pgoff | 0-2305843009213693951 |
| PARAM_VALUE | 2 | nr_pages | 0-s64max |
| CAPPED_DATA | 2 | nr_pages | 1 |
| CAPPED_DATA | 2 | nr_pages | 1 |
| DATA_SOURCE | 0 | dax_dev | r stripe_dax_pgoff |
| DATA_SOURCE | 1 | pgoff | $1 [m] |
| DATA_SOURCE | 2 | nr_pages | $2 |
| DATA_SOURCE | 3 | mode | $3 |
| DATA_SOURCE | 4 | kaddr | $4 |
| DATA_SOURCE | 5 | pfn | $5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | nr_pages | 1-2251799814209536[c] |
| LOCK2 | &md->io_barrier | ||
| HALF_LOCKED2 | global &dax_srcu | ||
| TYPE_LOCK | (struct mapped_device)->io_barrier |