Searched refs:iops_limit (Results 1 - 4 of 4) sorted by relevance
/linux-master/fs/btrfs/ |
H A D | discard.c | 570 * discardable_extents. Clamp this between the lower_limit (iops_limit or 1ms) 577 u32 iops_limit; local 608 iops_limit = READ_ONCE(discard_ctl->iops_limit); 610 if (iops_limit) { 611 delay = MSEC_PER_SEC / iops_limit; 614 * Unset iops_limit means go as fast as possible, so allow a 765 discard_ctl->iops_limit = BTRFS_DISCARD_MAX_IOPS;
|
H A D | sysfs.c | 524 READ_ONCE(fs_info->discard_ctl.iops_limit)); 533 u32 iops_limit; local 536 ret = kstrtou32(buf, 10, &iops_limit); 540 WRITE_ONCE(discard_ctl->iops_limit, iops_limit); 545 BTRFS_ATTR_RW(discard, iops_limit, btrfs_discard_iops_limit_show, 619 BTRFS_ATTR_PTR(discard, iops_limit),
|
H A D | fs.h | 372 u32 iops_limit; member in struct:btrfs_discard_ctl
|
/linux-master/block/ |
H A D | blk-throttle.c | 700 static unsigned int calculate_io_allowed(u32 iops_limit, argument 713 tmp = (u64)iops_limit * jiffy_elapsed; 800 u32 iops_limit = tg_iops_limit(tg, rw); local 812 if (iops_limit != UINT_MAX) 814 calculate_io_allowed(iops_limit, jiffy_elapsed) - 832 u32 iops_limit) 838 if (iops_limit == UINT_MAX) { 846 io_allowed = calculate_io_allowed(iops_limit, jiffy_elapsed_rnd) + 907 u32 iops_limit = tg_iops_limit(tg, rw); local 919 if ((bps_limit == U64_MAX && iops_limit 831 tg_within_iops_limit(struct throtl_grp *tg, struct bio *bio, u32 iops_limit) argument [all...] |
Completed in 581 milliseconds