summaryrefslogtreecommitdiffstats
path: root/src/mds/InoTable.cc
diff options
context:
space:
mode:
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>2010-09-27 21:06:06 +0200
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>2010-09-27 21:48:57 +0200
commitfb41b8f823ab0787cce366dadef5146021fd4db1 (patch)
treec1b126f069c4369159b3afa95aeee91da8990fe1 /src/mds/InoTable.cc
parentrgw: send 100-continue response only if requested (diff)
downloadceph-fb41b8f823ab0787cce366dadef5146021fd4db1.tar.xz
ceph-fb41b8f823ab0787cce366dadef5146021fd4db1.zip
Rename interval_set::begin and end
Rename interval_set::begin and end to interval_set::range_begin and interval_set::range_end, respectively.
Diffstat (limited to 'src/mds/InoTable.cc')
-rw-r--r--src/mds/InoTable.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds/InoTable.cc b/src/mds/InoTable.cc
index 1e305117d4f..7f3cf4d5481 100644
--- a/src/mds/InoTable.cc
+++ b/src/mds/InoTable.cc
@@ -45,7 +45,7 @@ inodeno_t InoTable::project_alloc_id(inodeno_t id)
dout(10) << "project_alloc_id " << id << " to " << projected_free << "/" << free << dendl;
assert(is_active());
if (!id)
- id = projected_free.start();
+ id = projected_free.range_start();
projected_free.erase(id);
++projected_version;
return id;
@@ -61,7 +61,7 @@ void InoTable::project_alloc_ids(interval_set<inodeno_t>& ids, int want)
{
assert(is_active());
while (want > 0) {
- inodeno_t start = projected_free.start();
+ inodeno_t start = projected_free.range_start();
inodeno_t end = projected_free.end_after(start);
inodeno_t num = end - start;
if (num > (inodeno_t)want)