Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

fs/f2fs/gc.c f2fs_gc() -> has_enough_free_secs()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 freed 0-s32max
PARAM_VALUE 2 needed 0
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
DATA_SOURCE 0 sbi $0
FUZZY_MAX 1 freed 0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
LOCK2 0 &sbi->gc_lock.internal_rwsem
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 0 &sbi->cp_rwsem.internal_rwsem
HALF_LOCKED2 0 &sbi->pin_sem.internal_rwsem

fs/f2fs/gc.c f2fs_gc() -> has_enough_free_secs()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 freed 0
PARAM_VALUE 2 needed 0
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
DATA_SOURCE 0 sbi $0
BIT_INFO 0 sbi->sb->s_flags 0x40000000,0xffffffffffffffff
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
LOCK2 0 &sbi->gc_lock.internal_rwsem
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 0 &sbi->pin_sem.internal_rwsem
TYPE_LOCK (struct f2fs_rwsem)->internal_rwsem

fs/f2fs/gc.c f2fs_get_victim() -> has_enough_free_secs()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 freed 0
PARAM_VALUE 2 needed 6
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
DATA_SOURCE 0 sbi $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
LOCK2 &dirty_i->seglist_lock
LOCK2 &sit_i->sentry_lock
LOCK2 0 &sbi->gc_lock.internal_rwsem
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 0 &sbi->pin_sem.internal_rwsem
TYPE_LOCK (struct dirty_seglist_info)->seglist_lock
TYPE_LOCK (struct f2fs_rwsem)->internal_rwsem
TYPE_LOCK (struct sit_info)->sentry_lock

fs/f2fs/inode.c f2fs_is_checkpoint_ready() -> has_enough_free_secs()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 freed 0
PARAM_VALUE 2 needed 0
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
DATA_SOURCE 0 sbi $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
HALF_LOCKED2 &inode->i_rwsem

fs/f2fs/segment.c f2fs_balance_fs() -> has_enough_free_secs()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 freed 0
PARAM_VALUE 2 needed 0
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
DATA_SOURCE 0 sbi $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &src->i_rwsem
HALF_LOCKED2 0 &sbi->cp_rwsem.internal_rwsem

fs/f2fs/data.c f2fs_is_checkpoint_ready() -> has_enough_free_secs()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 freed 0
PARAM_VALUE 2 needed 0
BUF_SIZE 0 sbi (-1),1-s32max
BUF_SIZE 0 sbi (-1),1-s32max
DATA_SOURCE 0 sbi $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
HALF_LOCKED2 &io->io_rwsem.internal_rwsem

fs/f2fs/xattr.c f2fs_is_checkpoint_ready() -> has_enough_free_secs()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 freed 0
PARAM_VALUE 2 needed 0
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
DATA_SOURCE 0 sbi $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte
HALF_LOCKED2 &inode->i_rwsem

fs/f2fs/namei.c f2fs_is_checkpoint_ready() -> has_enough_free_secs()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 freed 0
PARAM_VALUE 2 needed 0
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
DATA_SOURCE 0 sbi $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte

fs/f2fs/file.c f2fs_is_checkpoint_ready() -> has_enough_free_secs()

Type Parameter Key Value
PARAM_VALUE 0 sbi 4096-ptr_max
PARAM_VALUE 1 freed 0
PARAM_VALUE 2 needed 0
BUF_SIZE 0 sbi 1-s32max
BUF_SIZE 0 sbi 1-s32max
DATA_SOURCE 0 sbi $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sbi unit_byte