Home
last modified time | relevance | path

Searched refs:iops_limit (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.15/fs/btrfs/
Ddiscard.c538 u32 iops_limit; in btrfs_discard_calc_delay() local
568 iops_limit = READ_ONCE(discard_ctl->iops_limit); in btrfs_discard_calc_delay()
569 if (iops_limit) in btrfs_discard_calc_delay()
570 delay = MSEC_PER_SEC / iops_limit; in btrfs_discard_calc_delay()
711 discard_ctl->iops_limit = BTRFS_DISCARD_MAX_IOPS; in btrfs_discard_init()
Dsysfs.c496 READ_ONCE(fs_info->discard_ctl.iops_limit)); in btrfs_discard_iops_limit_show()
505 u32 iops_limit; in btrfs_discard_iops_limit_store() local
508 ret = kstrtou32(buf, 10, &iops_limit); in btrfs_discard_iops_limit_store()
512 WRITE_ONCE(discard_ctl->iops_limit, iops_limit); in btrfs_discard_iops_limit_store()
517 BTRFS_ATTR_RW(discard, iops_limit, btrfs_discard_iops_limit_show,
591 BTRFS_ATTR_PTR(discard, iops_limit),
Dctree.h499 u32 iops_limit; member
/Linux-v5.15/block/
Dblk-throttle.c902 u32 iops_limit, unsigned long *wait) in tg_with_in_iops_limit() argument
909 if (iops_limit == UINT_MAX) { in tg_with_in_iops_limit()
927 tmp = (u64)iops_limit * jiffy_elapsed_rnd; in tg_with_in_iops_limit()
1008 u32 iops_limit = tg_iops_limit(tg, rw); in tg_may_dispatch() local
1020 if (bps_limit == U64_MAX && iops_limit == UINT_MAX) { in tg_may_dispatch()
1042 if (iops_limit != UINT_MAX) in tg_may_dispatch()
1046 tg_with_in_iops_limit(tg, bio, iops_limit, &iops_wait)) { in tg_may_dispatch()