Re: [PATCH] btrfs: use percentage for fractions, replace helpers

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

 



On Tue, Aug 27, 2019 at 08:24:53PM +0200, David Sterba wrote:
> The div_factor* helpers calculate fraction or percentual fraction.
> There's a nice helper mult_frac that's for general fractions, we'll add
> a local wrapper suited for our purposes and replace all instances of
> div_factor and update naming in fuctions that pass the fractions.
> 
> * div_factor calculates tenths and the numbers need to be adjusted
> * div_factor_fine is direct replacement
> 
> Signed-off-by: David Sterba <dsterba@xxxxxxxx>

Dropped for now. Does not compile on 32bit and due to 64bit division and
adding 64bit version of mult_frac does not make things significantly
easier. I'll probably do a reduced version that only renames div_factor.



[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