- struct lu_export_data med_led;
- struct list_head med_open_head;
- spinlock_t med_open_lock; /* lock med_open_head, mfd_list*/
- __u64 med_ibits_known;
- struct semaphore med_idmap_sem;
- struct lustre_idmap_table *med_idmap;
-};
-
-#define med_lcd_lock med_led.led_lcd_lock
-#define med_lcd med_led.led_lcd
-#define med_lr_off med_led.led_lr_off
-#define med_lr_idx med_led.led_lr_idx
-
-struct osc_creator {
- spinlock_t oscc_lock;
- struct list_head oscc_list;
- struct obd_device *oscc_obd;
- obd_id oscc_last_id;//last available pre-created object
- obd_id oscc_next_id;// what object id to give out next
- int oscc_grow_count;
- /**
- * Limit oscc_grow_count value, can be changed via proc fs
- */
- int oscc_max_grow_count;
- struct obdo oscc_oa;
- int oscc_flags;
- cfs_waitq_t oscc_waitq; /* creating procs wait on this */
+ struct tg_export_data med_ted;
+ /** List of all files opened by client on this MDT */
+ cfs_list_t med_open_head;
+ spinlock_t med_open_lock; /* med_open_head, mfd_list */
+ /** Bitmask of all ibit locks this MDT understands */
+ __u64 med_ibits_known;
+ struct mutex med_idmap_mutex;
+ struct lustre_idmap_table *med_idmap;