lkml.org 
[lkml]   [2011]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Btrfs: fix 64 bit divide problem

* Josef Bacik <josef@redhat.com> wrote:

> This fixes a regression introduced by
>
> cdcb725c05fe0cb71777c66ddc2445fedbbb3c59
>
> In cases where we need to divide/multiply by 2 we should just left/right shift
> respectively, and in cases where theres N number of devices use do_div. Also
> make the counters u64 to match up with rw_devices. Thanks,
>
> Signed-off-by: Josef Bacik <josef@redhat.com>

Acked-and-tested-by: Ingo Molnar <mingo@elte.hu>

Thanks,

Ingo


\
 
 \ /
  Last update: 2011-08-21 09:25    [W:0.033 / U:3.852 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site