Re: [PATCH 3/9] writeback: bdi write bandwidth estimation

From: Wu Fengguang
Date: Fri Jul 08 2011 - 10:15:57 EST


Andrea,

> Another small time nitpick.
>
> > +
> > +static void bdi_update_bandwidth(struct backing_dev_info *bdi,
> > + unsigned long start_time)
> > +{
> > + if (jiffies - bdi->bw_time_stamp <= MAX_PAUSE + MAX_PAUSE / 10)
>
> if (time_is_after_eq_jiffies(bdi->bw_time_stamp + MAX_PAUSE +
> MAX_PAUSE / 10)

Done, and simplified to

if (time_is_after_eq_jiffies(bdi->bw_time_stamp + BANDWIDTH_INTERVAL))
return;

Thanks,
Fengguang
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/