Re: [PATCH] Btrfs: fix 64 bit divide problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Josef Bacik <josef@xxxxxxxxxx> 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@xxxxxxxxxx>

Acked-and-tested-by: Ingo Molnar <mingo@xxxxxxx>

Thanks,

	Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux