From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: Re: [PATCH 5/5] writeback: IO-less balance_dirty_pages() Date: Sun, 7 Aug 2011 14:44:59 +0800 Message-ID: <20110807064459.GB3287@localhost> References: <20110806084447.388624428@intel.com> <20110806094527.136636891@intel.com> <20110806144834.GA29243@thinkpad> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: "linux-fsdevel@vger.kernel.org" , Andrew Morton , Jan Kara , Christoph Hellwig , Dave Chinner , Greg Thelen , Minchan Kim , Vivek Goyal , linux-mm , LKML To: Andrea Righi Return-path: Content-Disposition: inline In-Reply-To: <20110806144834.GA29243@thinkpad> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org > > + bw =3D (u64)base_bw * bw >> BANDWIDTH_CALC_SHIFT; > > + pause =3D (HZ * pages_dirtied + bw / 2) / (bw | 1); > > + pause =3D min(pause, MAX_PAUSE); >=20 > Fix this build warning: >=20 > mm/page-writeback.c: In function =E2=80=98balance_dirty_pages=E2=80=99= : > mm/page-writeback.c:889:11: warning: comparison of distinct pointer ty= pes lacks a cast Thanks! I'll fix it by changing `pause' to "long", since we'll have negative pause time anyway when considering think time compensation. Thanks, Fengguang -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter= .ca/ Don't email: email@kvack.org