]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: don't update op in calc_layout()
authorAlex Elder <elder@inktank.com>
Thu, 14 Mar 2013 01:50:01 +0000 (20:50 -0500)
committerAlex Elder <elder@inktank.com>
Thu, 4 Apr 2013 14:22:30 +0000 (09:22 -0500)
commitc6e66bcc7ac743d9329973ff41ea62a14e9ae37f
tree70a1ab96982863ef437573cd624eb4c5204a0444
parent25471051e87b7180ded4c5bd0b71371cdfb48daf
libceph: don't update op in calc_layout()

The ceph_osdc_new_request() an array of osd operations is built up
and filled in partially within that function and partially in the
called function calc_layout().  Move the latter part back out to
ceph_osdc_new_request() so it's all done in one place.  This makes
it unnecessary to pass the op pointer to calc_layout(), so get rid
of that parameter.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
net/ceph/osd_client.c