Whamcloud - gitweb
LU-7042 lnet: Handle OFED 3.18 packaging definitions
[fs/lustre-release.git] / lustre / lod / lod_internal.h
index 6f1bff1..cd9f3a1 100644 (file)
 #define LOV_OFFSET_DEFAULT             ((__u16)-1)
 
 struct lod_qos_rr {
+       spinlock_t               lqr_alloc;     /* protect allocation index */
        __u32                    lqr_start_idx; /* start index of new inode */
-       __u32                    lqr_offset_idx; /* aliasing for start_idx */
-       int                      lqr_start_count; /* reseed counter */
+       __u32                    lqr_offset_idx;/* aliasing for start_idx */
+       int                      lqr_start_count;/* reseed counter */
        struct ost_pool          lqr_pool;      /* round-robin optimized list */
        unsigned long            lqr_dirty:1;   /* recalc round-robin list */
 };
@@ -474,6 +475,7 @@ int lod_qos_prep_create(const struct lu_env *env, struct lod_object *lo,
                        struct thandle *th);
 int qos_add_tgt(struct lod_device*, struct lod_tgt_desc *);
 int qos_del_tgt(struct lod_device *, struct lod_tgt_desc *);
+void lod_qos_rr_init(struct lod_qos_rr *lqr);
 
 /* lproc_lod.c */
 int lod_procfs_init(struct lod_device *lod);