Searched refs:iops_limit (Results 1 – 4 of 4) sorted by relevance
/linux-6.6.21/fs/btrfs/ |
D | discard.c | 577 u32 iops_limit; in btrfs_discard_calc_delay() local 608 iops_limit = READ_ONCE(discard_ctl->iops_limit); in btrfs_discard_calc_delay() 610 if (iops_limit) { in btrfs_discard_calc_delay() 611 delay = MSEC_PER_SEC / iops_limit; in btrfs_discard_calc_delay() 765 discard_ctl->iops_limit = BTRFS_DISCARD_MAX_IOPS; in btrfs_discard_init()
|
D | sysfs.c | 511 READ_ONCE(fs_info->discard_ctl.iops_limit)); in btrfs_discard_iops_limit_show() 520 u32 iops_limit; in btrfs_discard_iops_limit_store() local 523 ret = kstrtou32(buf, 10, &iops_limit); in btrfs_discard_iops_limit_store() 527 WRITE_ONCE(discard_ctl->iops_limit, iops_limit); in btrfs_discard_iops_limit_store() 532 BTRFS_ATTR_RW(discard, iops_limit, btrfs_discard_iops_limit_show, 606 BTRFS_ATTR_PTR(discard, iops_limit),
|
D | fs.h | 328 u32 iops_limit; member
|
/linux-6.6.21/block/ |
D | blk-throttle.c | 700 static unsigned int calculate_io_allowed(u32 iops_limit, in calculate_io_allowed() argument 713 tmp = (u64)iops_limit * jiffy_elapsed; in calculate_io_allowed() 800 u32 iops_limit = tg_iops_limit(tg, rw); in __tg_update_carryover() local 812 if (iops_limit != UINT_MAX) in __tg_update_carryover() 814 calculate_io_allowed(iops_limit, jiffy_elapsed) - in __tg_update_carryover() 832 u32 iops_limit) in tg_within_iops_limit() argument 838 if (iops_limit == UINT_MAX) { in tg_within_iops_limit() 846 io_allowed = calculate_io_allowed(iops_limit, jiffy_elapsed_rnd) + in tg_within_iops_limit() 907 u32 iops_limit = tg_iops_limit(tg, rw); in tg_may_dispatch() local 919 if ((bps_limit == U64_MAX && iops_limit == UINT_MAX) || in tg_may_dispatch() [all …]
|