Skip to content

Commit ba5bd52

Browse files
rhvgoyalJens Axboe
authored andcommitted
cfq: rename a function to give it more appropriate name
o Rename a function to give it more approprate name. We are calculating cfq queue slice and function name gives the impression as if cfq group slice length is being calculated. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
1 parent 68264e9 commit ba5bd52

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎block/cfq-iosched.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ cfq_group_slice(struct cfq_data *cfqd, struct cfq_group *cfqg)
599599
}
600600

601601
static inline unsigned
602-
cfq_scaled_group_slice(struct cfq_data *cfqd, struct cfq_queue *cfqq)
602+
cfq_scaled_cfqq_slice(struct cfq_data *cfqd, struct cfq_queue *cfqq)
603603
{
604604
unsigned slice = cfq_prio_to_slice(cfqd, cfqq);
605605
if (cfqd->cfq_latency) {
@@ -631,7 +631,7 @@ cfq_scaled_group_slice(struct cfq_data *cfqd, struct cfq_queue *cfqq)
631631
static inline void
632632
cfq_set_prio_slice(struct cfq_data *cfqd, struct cfq_queue *cfqq)
633633
{
634-
unsigned slice = cfq_scaled_group_slice(cfqd, cfqq);
634+
unsigned slice = cfq_scaled_cfqq_slice(cfqd, cfqq);
635635

636636
cfqq->slice_start = jiffies;
637637
cfqq->slice_end = jiffies + slice;
@@ -1671,7 +1671,7 @@ __cfq_slice_expired(struct cfq_data *cfqd, struct cfq_queue *cfqq,
16711671
*/
16721672
if (timed_out) {
16731673
if (cfq_cfqq_slice_new(cfqq))
1674-
cfqq->slice_resid = cfq_scaled_group_slice(cfqd, cfqq);
1674+
cfqq->slice_resid = cfq_scaled_cfqq_slice(cfqd, cfqq);
16751675
else
16761676
cfqq->slice_resid = cfqq->slice_end - jiffies;
16771677
cfq_log_cfqq(cfqd, cfqq, "resid=%ld", cfqq->slice_resid);

0 commit comments

Comments
 (0)