From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH] writeback: prevent bandwidth calculation overflow Date: Thu, 18 Nov 2010 17:02:01 +0100 Message-ID: <1290096121.2109.1525.camel@laptop> References: <20101118065725.GB8458@localhost> <4CE537BE.6090103@redhat.com> <20101118154408.GA18582@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: Rik van Riel , Andrew Morton , Jan Kara , "Li, Shaohua" , Christoph Hellwig , Dave Chinner , Theodore Ts'o , Chris Mason , Mel Gorman , KOSAKI Motohiro , linux-mm , "linux-fsdevel@vger.kernel.org" , LKML To: Wu Fengguang Return-path: In-Reply-To: <20101118154408.GA18582@localhost> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org On Thu, 2010-11-18 at 23:44 +0800, Wu Fengguang wrote: > + pause =3D HZ * pages_dirtied / (bw + 1); Shouldn't that be using something like div64_u64 ? -- 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 policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: email@kvack.org