diff options
author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-02-25 15:22:26 +0100 |
---|---|---|
committer | Yan, Zheng <zheng.z.yan@intel.com> | 2014-04-03 04:33:51 +0200 |
commit | 7b25bf5f02c5c80adf96120e031dc3a1756ce54d (patch) | |
tree | 002d8d1229f7d52b109ba660cf63a97030806dc5 /net/ceph/osd_client.c | |
parent | rbd: fix error paths in rbd_img_request_fill() (diff) | |
download | linux-7b25bf5f02c5c80adf96120e031dc3a1756ce54d.tar.xz linux-7b25bf5f02c5c80adf96120e031dc3a1756ce54d.zip |
libceph: encode CEPH_OSD_OP_FLAG_* op flags
Encode ceph_osd_op::flags field so that it gets sent over the wire.
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'net/ceph/osd_client.c')
-rw-r--r-- | net/ceph/osd_client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index 0676f2b199d6..5d7fd0b8c1c8 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c @@ -688,7 +688,9 @@ static u64 osd_req_encode_op(struct ceph_osd_request *req, return 0; } + dst->op = cpu_to_le16(src->op); + dst->flags = cpu_to_le32(src->flags); dst->payload_len = cpu_to_le32(src->payload_len); return request_data_len; |