diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2010-04-06 22:01:27 (GMT) |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-10-20 22:37:18 (GMT) |
commit | 68b4476b0bc13fef18266b4140309a30e86739d2 (patch) | |
tree | 47fab5ea2491c7bc75fe14a3b0d3a091eb6244b7 /fs/ceph/pagelist.c | |
parent | 3499e8a5d4dbb083324efd942e2c4fb7eb65f27c (diff) | |
download | linux-68b4476b0bc13fef18266b4140309a30e86739d2.tar.xz |
ceph: messenger and osdc changes for rbd
Allow the messenger to send/receive data in a bio. This is added
so that we wouldn't need to copy the data into pages or some other buffer
when doing IO for an rbd block device.
We can now have trailing variable sized data for osd
ops. Also osd ops encoding is more modular.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/pagelist.c')
-rw-r--r-- | fs/ceph/pagelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/pagelist.c b/fs/ceph/pagelist.c index 46a368b..326e1c0 100644 --- a/fs/ceph/pagelist.c +++ b/fs/ceph/pagelist.c @@ -39,7 +39,7 @@ static int ceph_pagelist_addpage(struct ceph_pagelist *pl) return 0; } -int ceph_pagelist_append(struct ceph_pagelist *pl, void *buf, size_t len) +int ceph_pagelist_append(struct ceph_pagelist *pl, const void *buf, size_t len) { while (pl->room < len) { size_t bit = pl->room; |