[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110816072251.GA12264@localhost>
Date: Tue, 16 Aug 2011 15:22:51 +0800
From: Wu Fengguang <fengguang.wu@...el.com>
To: Andrea Righi <andrea@...terlinux.com>
Cc: "linux-fsdevel@...r.kernel.org" <linux-fsdevel@...r.kernel.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Andrew Morton <akpm@...ux-foundation.org>,
Jan Kara <jack@...e.cz>, Christoph Hellwig <hch@....de>,
Dave Chinner <david@...morbit.com>,
Greg Thelen <gthelen@...gle.com>,
Minchan Kim <minchan.kim@...il.com>,
Vivek Goyal <vgoyal@...hat.com>, linux-mm <linux-mm@...ck.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 4/5] writeback: per task dirty rate limit
> > + if (!bdi->dirty_exceeded)
> > + ratelimit = current->nr_dirtied_pause;
> > + else
> > + ratelimit = min(ratelimit, 32 >> (PAGE_SHIFT - 10));
>
> Usage of ratelimit before init?
>
> Maybe:
>
> ratelimit = current->nr_dirtied_pause;
> if (bdi->dirty_exceeded)
> ratelimit = min(ratelimit, 32 >> (PAGE_SHIFT - 10));
Good catch, thanks! That's indeed the original form. I changed it to
make the code more aligned...
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