]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: add floor() method to pg/osd stat structs
authorSage Weil <sage@inktank.com>
Thu, 18 Jul 2013 04:52:50 +0000 (21:52 -0700)
committerSage Weil <sage@inktank.com>
Fri, 19 Jul 2013 17:31:48 +0000 (10:31 -0700)
commit2e09b6e0bc1e5cf0aee5e14d7359fba991a80e74
tree1988977ba9da249ddb2aec0ce36a438dd2f38e17
parentb4db58865f537601a89753a37b494f8ccb1e1b6f
osd: add floor() method to pg/osd stat structs

We often want to maintain a nonnegative value.  We generalize
this to floors other than zero only because it makes the function
call make intuitive sense; I don't think it is at all useful.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/osd_types.h