linux-stable/include/linux/ceph
Alex Elder ae7ca4a35b libceph: pass num_op with ops
Both ceph_osdc_alloc_request() and ceph_osdc_build_request() are
provided an array of ceph osd request operations.  Rather than just
passing the number of operations in the array, the caller is
required append an additional zeroed operation structure to signal
the end of the array.

All callers know the number of operations at the time these
functions are called, so drop the silly zero entry and supply that
number directly.  As a result, get_num_ops() is no longer needed.
This also means that ceph_osdc_alloc_request() never uses its ops
argument, so that can be dropped.

Also rbd_create_rw_ops() no longer needs to add one to reserve room
for the additional op.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-01-17 16:34:57 -06:00
..
auth.h ceph: messenger: reduce args to create_authorizer 2012-05-17 08:18:12 -05:00
buffer.h
ceph_debug.h
ceph_features.h libceph: for chooseleaf rules, retry CRUSH map descent from root if leaf is failed 2013-01-17 12:42:39 -06:00
ceph_frag.h
ceph_fs.h libceph: move feature bits to separate header 2012-07-30 16:23:22 -07:00
ceph_hash.h
debugfs.h
decode.h ceph: define ceph_encode_8_safe() 2013-01-17 14:09:08 -06:00
libceph.h libceph: remove 'osdtimeout' option 2012-12-13 08:13:06 -06:00
mdsmap.h BUG: headers with BUG/BUG_ON etc. need linux/bug.h 2012-03-04 17:54:34 -05:00
messenger.h libceph: clean up con flags 2012-07-30 18:16:01 -07:00
mon_client.h libceph: remove unused monc->have_fsid 2012-10-01 14:30:49 -05:00
msgpool.h libceph: initialize msgpool message types 2012-07-30 09:29:50 -07:00
msgr.h
osd_client.h libceph: pass num_op with ops 2013-01-17 16:34:57 -06:00
osdmap.h libceph: pass length to ceph_calc_file_object_mapping() 2013-01-17 15:52:04 -06:00
pagelist.h
rados.h rbd: get parent spec for version 2 images 2012-11-01 07:55:42 -05:00
types.h