aboutsummaryrefslogtreecommitdiff
path: root/net/wireless
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-03-13 20:50:01 -0500
committerSage Weil <sage@inktank.com>2013-05-01 21:17:48 -0700
commitd18d1e2807f38a94839be1f83682e17011f53322 (patch)
tree5237d307969cfa0604dbb3c1c93fa08ee78d5ef3 /net/wireless
parenta19dadfba91c73a12a666e6fdb9e242f325df825 (diff)
libceph: clean up ceph_osd_new_request()
All callers of ceph_osd_new_request() pass either CEPH_OSD_OP_READ or CEPH_OSD_OP_WRITE as the opcode value. The function assumes it by filling in the extent fields in the ops array it builds. So just assert that is the case, and don't bother calling op_has_extent() before filling in the first osd operation in the array. Define some local variables to gather the information to fill into the first op, and then fill in the op array all in one place. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'net/wireless')
0 files changed, 0 insertions, 0 deletions