Messages in this thread | | | Date | Thu, 18 Nov 2010 09:27:10 -0500 | From | Rik van Riel <> | Subject | Re: [PATCH] writeback: prevent bandwidth calculation overflow |
| |
On 11/18/2010 01:57 AM, Wu Fengguang wrote: > On 32bit kernel, bdi->write_bandwidth can express at most 4GB/s. > > However the current calculation code can overflow when disk bandwidth > reaches 800MB/s. Fix it by using "long long" and swapping the order of > multiplication/division. And further, change its unit to pages/second > rather than bytes/second. That allows up to 16TB/s bandwidth in 32bit > kernel. > > Signed-off-by: Wu Fengguang<fengguang.wu@intel.com>
Acked-by: Rik van Riel <riel@redhat.com>
-- All rights reversed
| |