+struct osp_precreate {
+ /*
+ * Precreation pool
+ */
+ spinlock_t osp_pre_lock;
+
+ /* last fid to assign in creation */
+ struct lu_fid osp_pre_used_fid;
+ /* last created id OST reported, next-created - available id's */
+ struct lu_fid osp_pre_last_created_fid;
+ /* how many ids are reserved in declare, we shouldn't block in create */
+ __u64 osp_pre_reserved;
+ /* thread waits for signals about pool going empty */
+ wait_queue_head_t osp_pre_waitq;
+ /* consumers (who needs new ids) wait here */
+ wait_queue_head_t osp_pre_user_waitq;
+ /* current precreation status: working, failed, stopping? */
+ int osp_pre_status;
+ /* how many to precreate next time */
+ int osp_pre_grow_count;
+ int osp_pre_min_grow_count;
+ int osp_pre_max_grow_count;
+ /* whether to grow precreation window next time or not */
+ int osp_pre_grow_slow;
+ /* cleaning up orphans or recreating missing objects */
+ int osp_pre_recovering;
+};
+