]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: cleanup duplicated division functions
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 13 Sep 2012 10:51:36 +0000 (04:51 -0600)
committerJosef Bacik <jbacik@fusionio.com>
Tue, 11 Dec 2012 18:31:30 +0000 (13:31 -0500)
commit575d3b19ffb731499593cf0743237ff16dda49ca
treee0e991e2d7ff5643c07f2b63395c0d9e744596ba
parent95db02af6e5d6140cba81d28ac65bf83005e493b
Btrfs: cleanup duplicated division functions

div_factor{_fine} has been implemented for two times, cleanup it.
And I move them into a independent file named math.h because they are
common math functions.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/extent-tree.c
fs/btrfs/math.h [new file with mode: 0644]
fs/btrfs/volumes.c