Whamcloud - gitweb
LU-2154 osp: precreate logic to use last assigned id
[fs/lustre-release.git] / lustre / osp / lproc_osp.c
index 21839f4..8488322 100644 (file)
@@ -291,7 +291,7 @@ static int osp_rd_prealloc_next_id(char *page, char **start, off_t off,
        if (osp == NULL)
                return 0;
 
        if (osp == NULL)
                return 0;
 
-       return snprintf(page, count, LPU64"\n", osp->opd_pre_next);
+       return snprintf(page, count, LPU64"\n", osp->opd_pre_used_id + 1);
 }
 
 static int osp_rd_prealloc_last_id(char *page, char **start, off_t off,
 }
 
 static int osp_rd_prealloc_last_id(char *page, char **start, off_t off,