[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110708115335.GB6159@localhost>
Date: Fri, 8 Jul 2011 04:53:35 -0700
From: Wu Fengguang <fengguang.wu@...el.com>
To: Andrea Righi <righi.andrea@...il.com>
Cc: "linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>,
Jan Kara <jack@...e.cz>, Dave Chinner <david@...morbit.com>,
Christoph Hellwig <hch@...radead.org>,
Andrew Morton <akpm@...ux-foundation.org>,
"Li, Shaohua" <shaohua.li@...el.com>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 3/9] writeback: bdi write bandwidth estimation
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists