In the future, we may be allocating from different inode number sets
in the same session. Drop this check.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
return session_cache_liveness.get();
}
- inodeno_t next_ino() const {
- if (info.prealloc_inos.empty())
- return 0;
- return info.prealloc_inos.range_start();
- }
inodeno_t take_ino(inodeno_t ino = 0) {
ceph_assert(!info.prealloc_inos.empty());
dout(20) << " (session prealloc " << session->info.prealloc_inos << ")" << dendl;
if (used_preallocated_ino) {
if (!session->info.prealloc_inos.empty()) {
- inodeno_t next = session->next_ino();
inodeno_t i = session->take_ino(used_preallocated_ino);
- if (next != i)
- mds->clog->warn() << " replayed op " << client_reqs << " used ino " << i
- << " but session next is " << next;
ceph_assert(i == used_preallocated_ino);
session->info.used_inos.clear();
}