NewDreamNetwork/ceph — comment on commit 2a0c0b118887b4828e8b1c10dc7b820f6315ac76
File: src/osd/PG.h line 499
By liewegas:

in fact, just

size_t approx_size() const { return head.version - tail.version; }

might do it!