aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-01-16 17:21:12 +0100
committerDavid Sterba <dsterba@suse.cz>2015-02-20 18:22:16 +0100
commit16068ec19f497bd80552332b4523150884888a7a (patch)
tree855f1cedc1bce22fcda014abfc016422192409bc /fs/btrfs/tree-log.c
parentBtrfs: fix allocation size calculations in alloc_btrfs_bio (diff)
downloadwireguard-linux-16068ec19f497bd80552332b4523150884888a7a.tar.xz
wireguard-linux-16068ec19f497bd80552332b4523150884888a7a.zip
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>
Diffstat (limited to 'fs/btrfs/tree-log.c')
0 files changed, 0 insertions, 0 deletions