diff options
author | 2014-04-04 17:32:15 -0700 | |
---|---|---|
committer | 2014-10-14 21:03:35 +0400 | |
commit | 3b434a2aff38029ea053ce6c8fced53b2d01f7f0 (patch) | |
tree | f4055dab80a6681ee134c49844b81a0149262950 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | rbd: make discard trigger copy-on-write (diff) | |
download | wireguard-linux-3b434a2aff38029ea053ce6c8fced53b2d01f7f0.tar.xz wireguard-linux-3b434a2aff38029ea053ce6c8fced53b2d01f7f0.zip |
rbd: extract a method for adding object operations
rbd_img_request_fill() creates a ceph_osd_request and has logic for
adding the appropriate osd ops to it based on the request type and
image properties.
For layered images, the original rbd_obj_request is resent with a
copyup operation in front, using a new ceph_osd_request. The logic for
adding the original operations should be the same as when first
sending them, so move it to a helper function.
op_type only needs to be checked once, so create a helper for that as
well and call it outside the loop in rbd_img_request_fill().
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions