commit | f8c269d7223f6b63cc5936eb191bc3b170d24342 | [log] [tgz] |
---|---|---|
author | David Sterba <dsterba@suse.cz> | Fri Jan 16 17:21:12 2015 +0100 |
committer | David Sterba <dsterba@suse.cz> | Tue Mar 03 17:23:57 2015 +0100 |
tree | 2e82cc23da9f436bbb6fde058b3321619f990db2 | |
parent | 351810c1d2aafa288af61844d877941d516fb031 [diff] |
btrfs: cleanup 64bit/32bit divs, compile time constants Switch to div_u64 if the divisor is a numeric constant or sum of sizeof()s. We can remove a few instances of do_div that has the hidden semtantics of changing the 1st argument. Small power-of-two divisors are converted to bitshifts, large values are kept intact for clarity. Signed-off-by: David Sterba <dsterba@suse.cz>