summaryrefslogtreecommitdiffstats
path: root/src/mds/InoTable.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-04-27 20:52:40 +0200
committerSage Weil <sage@newdream.net>2009-04-27 20:57:31 +0200
commit232c21a992b56b037980c1bb055c96374b79efc9 (patch)
tree3966ec9d8a1e70575c532e95c8897c2cfc20e8ab /src/mds/InoTable.h
parentmon: only log osd boot once (diff)
downloadceph-232c21a992b56b037980c1bb055c96374b79efc9.tar.xz
ceph-232c21a992b56b037980c1bb055c96374b79efc9.zip
mds: use interval_set for ino allocation
This avoids long ino lists. Changes ondisk format, unfortunately.
Diffstat (limited to 'src/mds/InoTable.h')
-rw-r--r--src/mds/InoTable.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mds/InoTable.h b/src/mds/InoTable.h
index 13969b30721..80d34ec7e96 100644
--- a/src/mds/InoTable.h
+++ b/src/mds/InoTable.h
@@ -31,15 +31,15 @@ class InoTable : public MDSTable {
inodeno_t project_alloc_id(inodeno_t id=0);
void apply_alloc_id(inodeno_t id);
- void project_alloc_ids(deque<inodeno_t>& inos, int want);
- void apply_alloc_ids(deque<inodeno_t>& inos);
+ void project_alloc_ids(interval_set<inodeno_t>& inos, int want);
+ void apply_alloc_ids(interval_set<inodeno_t>& inos);
- void project_release_ids(deque<inodeno_t>& inos);
- void apply_release_ids(deque<inodeno_t>& inos);
+ void project_release_ids(interval_set<inodeno_t>& inos);
+ void apply_release_ids(interval_set<inodeno_t>& inos);
void replay_alloc_id(inodeno_t ino);
- void replay_alloc_ids(deque<inodeno_t>& inos);
- void replay_release_ids(deque<inodeno_t>& inos);
+ void replay_alloc_ids(interval_set<inodeno_t>& inos);
+ void replay_release_ids(interval_set<inodeno_t>& inos);
void init_inode();
void reset_state();