]> 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)
commite5f9e7b22572be41bc33c4a98c50726bdbdc9f76
treee0e991e2d7ff5643c07f2b63395c0d9e744596ba
parentd8bd88f2c8d9ae3e245f327cfd5e0fbe12cfb7be
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