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)
commit3fed40cc97f32bebfd34a55364de9b44dcbede59
treee0e991e2d7ff5643c07f2b63395c0d9e744596ba
parent29594404d7fe73cd80eaa4ee8c43dcc53970c60e
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