Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

fs/netfs/fscache_cache.c fscache_add_cache() -> fscache_set_cache_state()

Type Parameter Key Value
PARAM_VALUE 0 cache 4096-ptr_max
PARAM_VALUE 0 cache->state 1
PARAM_VALUE 1 new_state 2
BUF_SIZE 0 cache (-1),64
BUF_SIZE 0 cache (-1),64
BUF_SIZE 0 cache->cache_priv s32min-(-2),1-s32max
DATA_SOURCE 0 cache $0
NOCHECK_CALL
LOCK2 &cache->daemon_mutex
LOCK2 global &fscache_addremove_sem
TYPE_LOCK (struct cachefiles_cache)->daemon_mutex

fs/netfs/fscache_cache.c fscache_relinquish_cache() -> fscache_set_cache_state()

Type Parameter Key Value
PARAM_VALUE 0 cache 4096-ptr_max
PARAM_VALUE 0 cache->state 2,4
PARAM_VALUE 1 new_state 0
BUF_SIZE 0 cache (-1),64
BUF_SIZE 0 cache (-1),64
DATA_SOURCE 0 cache $0
HARD_MAX 0 cache->state 4
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &cache->daemon_mutex

fs/netfs/fscache_cache.c fscache_withdraw_cache() -> fscache_set_cache_state()

Type Parameter Key Value
PARAM_VALUE 0 cache 4096-ptr_max
PARAM_VALUE 1 new_state 4
DATA_SOURCE 0 cache $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL