Defined in 2 files as a function:

Referenced in 3 files:

Smatch caller information:

fs/quota/dquot.c dquot_add_inodes() -> sb_has_quota_limits_enabled()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
LOCK2 &dquot->dq_dqb_lock
LOCK2 &inode->i_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 global &dq_data_lock
HALF_LOCKED2 global &dquot_srcu
TYPE_LOCK (struct dquot)->dq_dqb_lock
TYPE_LOCK (struct inode)->i_lock

fs/quota/dquot.c dquot_add_space() -> sb_has_quota_limits_enabled()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
LOCK2 &dquot->dq_dqb_lock
LOCK2 &inode->i_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 global &dq_data_lock
HALF_LOCKED2 global &dquot_srcu
TYPE_LOCK (struct dquot)->dq_dqb_lock
TYPE_LOCK (struct inode)->i_lock

fs/quota/dquot.c dquot_get_state() -> sb_has_quota_limits_enabled()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 type 0-2
DATA_SOURCE 0 sb $0
FUZZY_MAX 1 type 2
HARD_MAX 1 type 2
PREEMPT_ADD <- disables preempt
LOCK2 global &dq_data_lock
HALF_LOCKED2 0 &sb->s_umount

fs/quota/dquot.c dquot_quota_disable() -> sb_has_quota_limits_enabled()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 type 0-2
DATA_SOURCE 0 sb $0
FUZZY_MAX 1 type 2
HARD_MAX 1 type 2
HALF_LOCKED2 0 &sb->s_umount

fs/quota/dquot.c dquot_quota_enable() -> sb_has_quota_limits_enabled()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 type 0-2
DATA_SOURCE 0 sb $0
FUZZY_MAX 1 type 2
HARD_MAX 1 type 2
HALF_LOCKED2 0 &sb->s_umount

fs/quota/dquot.c info_idq_free() -> sb_has_quota_limits_enabled()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
LOCK2 &inode->i_lock
HALF_LOCKED2 &dquot->dq_dqb_lock
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 global &dq_data_lock
HALF_LOCKED2 global &dquot_srcu
TYPE_LOCK (struct inode)->i_lock

fs/f2fs/super.c f2fs_statfs() -> sb_has_quota_limits_enabled()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 type 2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
HALF_LOCKED2 &s->s_umount

fs/ext4/super.c ext4_statfs() -> sb_has_quota_limits_enabled()

Type Parameter Key Value
PARAM_VALUE 0 sb 4096-ptr_max
PARAM_VALUE 1 type 2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sb unit_byte
HALF_LOCKED2 &s->s_umount