no need to refill the pre-allocated inode numbers each time an inode
number is used.
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
}
int got = g_conf->mds_client_prealloc_inos - mdr->session->get_num_projected_prealloc_inos();
- if (got > 0) {
+ if (got > g_conf->mds_client_prealloc_inos / 2) {
mds->inotable->project_alloc_ids(mdr->prealloc_inos, got);
assert(mdr->prealloc_inos.size()); // or else fix projected increment semantics
mdr->session->pending_prealloc_inos.insert(mdr->prealloc_inos);