Home
last modified time | relevance | path

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

/linux-6.1.9/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.c501 READ_ONCE(fs_info->discard_ctl.iops_limit)); in btrfs_discard_iops_limit_show()
510 u32 iops_limit; in btrfs_discard_iops_limit_store() local
513 ret = kstrtou32(buf, 10, &iops_limit); in btrfs_discard_iops_limit_store()
517 WRITE_ONCE(discard_ctl->iops_limit, iops_limit); in btrfs_discard_iops_limit_store()
522 BTRFS_ATTR_RW(discard, iops_limit, btrfs_discard_iops_limit_show,
596 BTRFS_ATTR_PTR(discard, iops_limit),
Dctree.h530 u32 iops_limit; member
/linux-6.1.9/block/
Dblk-throttle.c760 static unsigned int calculate_io_allowed(u32 iops_limit, in calculate_io_allowed() argument
773 tmp = (u64)iops_limit * jiffy_elapsed; in calculate_io_allowed()
793 u32 iops_limit = tg_iops_limit(tg, rw); in __tg_update_carryover() local
805 if (iops_limit != UINT_MAX) in __tg_update_carryover()
807 calculate_io_allowed(iops_limit, jiffy_elapsed) - in __tg_update_carryover()
825 u32 iops_limit, unsigned long *wait) in tg_within_iops_limit() argument
831 if (iops_limit == UINT_MAX) { in tg_within_iops_limit()
841 io_allowed = calculate_io_allowed(iops_limit, jiffy_elapsed_rnd) + in tg_within_iops_limit()
914 u32 iops_limit = tg_iops_limit(tg, rw); in tg_may_dispatch() local
926 if ((bps_limit == U64_MAX && iops_limit == UINT_MAX) || in tg_may_dispatch()
[all …]