summaryrefslogtreecommitdiffstats
path: root/fs/ceph/decode.h
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2010-05-18 16:38:08 -0700
committerSage Weil <sage@newdream.net>2010-10-20 15:37:25 -0700
commitae1533b62b3369e6ae32338f4a77d64d0e88f676 (patch)
tree9a54b1c1c8a52a4ae46bc0c5421d04e93ac6495f /fs/ceph/decode.h
parent68b4476b0bc13fef18266b4140309a30e86739d2 (diff)
downloadop-kernel-dev-ae1533b62b3369e6ae32338f4a77d64d0e88f676.zip
op-kernel-dev-ae1533b62b3369e6ae32338f4a77d64d0e88f676.tar.gz
ceph-rbd: osdc support for osd call and rollback operations
This will be used for rbd snapshots administration. Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Diffstat (limited to 'fs/ceph/decode.h')
-rw-r--r--fs/ceph/decode.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/ceph/decode.h b/fs/ceph/decode.h
index 3d25415..c5b6939 100644
--- a/fs/ceph/decode.h
+++ b/fs/ceph/decode.h
@@ -191,6 +191,11 @@ static inline void ceph_encode_string(void **p, void *end,
ceph_encode_need(p, end, n, bad); \
ceph_encode_copy(p, pv, n); \
} while (0)
+#define ceph_encode_string_safe(p, end, s, n, bad) \
+ do { \
+ ceph_encode_need(p, end, n, bad); \
+ ceph_encode_string(p, end, s, n); \
+ } while (0)
#endif
OpenPOWER on IntegriCloud