Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/md/dm-log-writes.c log_writes_ctr() -> logdev_last_sector()

Type Parameter Key Value
PARAM_VALUE 0 lc 4096-ptr_max
PARAM_VALUE 0 lc->logdev 4096-ptr_max
BUF_SIZE 0 lc 360
DATA_SOURCE 0 lc r _kzalloc_noprof
BIT_INFO 0 lc->sectorshift 0x0,0x1f
HALF_LOCKED2 &md->type_lock

drivers/md/dm-log-writes.c log_writes_kthread() -> logdev_last_sector()

Type Parameter Key Value
PARAM_VALUE 0 lc 4096-ptr_max
BUF_SIZE 0 lc 128
BUF_SIZE 0 lc 128
CAPPED_DATA 0 &lc->logging_blocks 1
DATA_SOURCE 0 lc $0
PARAM_COMPARE 0 &lc->logging_blocks != $0->logging_blocks.next
PREEMPT_ADD <- disables preempt
LOCK2 irq
LOCK2 0 &lc->blocks_lock
TYPE_LOCK (struct log_writes_c)->blocks_lock