Added const qualifiers for the layout argument of file_to_extents and object_truncate_size

Signed-off-by: Sebastien Ponce <sebastien.ponce@cern.ch>
This commit is contained in:
Sebastien Ponce 2014-03-26 12:35:32 +01:00 committed by Josh Durgin
parent 8c124910a8
commit 62064f38c4
2 changed files with 7 additions and 7 deletions

View File

@ -27,7 +27,7 @@
void Striper::file_to_extents(CephContext *cct, const char *object_format,
ceph_file_layout *layout,
const ceph_file_layout *layout,
uint64_t offset, uint64_t len, uint64_t trunc_size,
vector<ObjectExtent>& extents,
uint64_t buffer_offset)
@ -39,7 +39,7 @@ void Striper::file_to_extents(CephContext *cct, const char *object_format,
}
void Striper::file_to_extents(CephContext *cct, const char *object_format,
ceph_file_layout *layout,
const ceph_file_layout *layout,
uint64_t offset, uint64_t len, uint64_t trunc_size,
map<object_t,vector<ObjectExtent> >& object_extents,
uint64_t buffer_offset)
@ -177,7 +177,7 @@ void Striper::extent_to_file(CephContext *cct, ceph_file_layout *layout,
}
}
uint64_t Striper::object_truncate_size(CephContext *cct, ceph_file_layout *layout,
uint64_t Striper::object_truncate_size(CephContext *cct, const ceph_file_layout *layout,
uint64_t objectno, uint64_t trunc_size)
{
uint64_t obj_trunc_size;

View File

@ -29,19 +29,19 @@ class CephContext;
* ranges in objects on (primary) osds)
*/
static void file_to_extents(CephContext *cct, const char *object_format,
ceph_file_layout *layout,
const ceph_file_layout *layout,
uint64_t offset, uint64_t len, uint64_t trunc_size,
map<object_t, vector<ObjectExtent> >& extents,
uint64_t buffer_offset=0);
static void file_to_extents(CephContext *cct, const char *object_format,
ceph_file_layout *layout,
const ceph_file_layout *layout,
uint64_t offset, uint64_t len, uint64_t trunc_size,
vector<ObjectExtent>& extents,
uint64_t buffer_offset=0);
static void file_to_extents(CephContext *cct, inodeno_t ino,
ceph_file_layout *layout,
const ceph_file_layout *layout,
uint64_t offset, uint64_t len, uint64_t trunc_size,
vector<ObjectExtent>& extents) {
// generate prefix/format
@ -61,7 +61,7 @@ class CephContext;
uint64_t objectno, uint64_t off, uint64_t len,
vector<pair<uint64_t, uint64_t> >& extents);
static uint64_t object_truncate_size(CephContext *cct, ceph_file_layout *layout,
static uint64_t object_truncate_size(CephContext *cct, const ceph_file_layout *layout,
uint64_t objectno, uint64_t trunc_size);
/*