Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-throttle.c Create Date:2022-07-28 17:42:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:throtl_set_slice_end

Proto:static inline void throtl_set_slice_end(struct throtl_grp *tg, bool rw, unsigned long jiffy_end)

Type:void

Parameter:

TypeParameterName
struct throtl_grp *tg
boolrw
unsigned longjiffy_end
814  slice_end[rw] = undup - round up to the next specified multiple*@x: the value to up*@y: multiple to round up to* Rounds @x up to next multiple of @y. If @y will always be a power* of 2, consider using the faster round_up().(jiffy_end, throtl_slice)
Caller
NameDescribe
throtl_trim_sliceTrim the used slices and adjust slice start accordingly