]> git.hungrycats.org Git - linux/commit
btrfs: replace remaining do_div calls with div_u64 variants
authorDavid Sterba <dsterba@suse.cz>
Fri, 20 Feb 2015 17:43:47 +0000 (18:43 +0100)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Fri, 27 Mar 2015 03:33:23 +0000 (23:33 -0400)
commit1ceb669ea36b2df854660e5a88c864e18cba4301
treeb1476287fc6e613e3068a7e66c481b20bc09da25
parent23d9ad3646c7a6f40b5b4e961f52331329d29589
btrfs: replace remaining do_div calls with div_u64 variants

Switch to div_u64_rem that does type checking and has more obvious
semantics than do_div.

Signed-off-by: David Sterba <dsterba@suse.cz>
(cherry picked from commit 47c5713f4737e460a3b2535abb8ae2e2afe2d2d0)
fs/btrfs/extent-tree.c
fs/btrfs/free-space-cache.c
fs/btrfs/scrub.c
fs/btrfs/volumes.c