From: David Sterba Date: Fri, 16 Jan 2015 16:21:12 +0000 (+0100) Subject: btrfs: cleanup 64bit/32bit divs, compile time constants X-Git-Tag: omap-for-v4.2/o2_dc~33^2~59^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8c269d7223f6b63cc5936eb191bc3b170d24342;p=pandora-kernel.git 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 --- Reading git-diff-tree failed