]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: use 64-bit math in ceph_calc_file_object_mapping()
authorAlex Elder <elder@dreamhost.com>
Thu, 8 Mar 2012 22:51:28 +0000 (16:51 -0600)
committerAlex Elder <elder@dreamhost.com>
Mon, 9 Apr 2012 15:15:16 +0000 (10:15 -0500)
commitc2bc79c00094cb7e2798bb9678d79e9634cdc663
treef6dd461e2dcca5672af225ba6ca300bfc9c87e9d
parente7267a10ed3ba501cf0384df667d3f228da406d7
ceph: use 64-bit math in ceph_calc_file_object_mapping()

Convert ceph_calc_file_object_mapping() so it uses 64-bit variables
and divide operators.  This is in anticipation of the next patch,
to keep the the changes it incurs more focused.

I made most of the variable names more verbose, and because it now
uses do_div() some of the calculations get done in a different
order.  Net result is that the code does what it did before, but it
looks quite a bit different...

Signed-off-by: Alex Elder <elder@dreamhost.com>
net/ceph/osdmap.c