* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2011, 2012, Intel, Inc.
+ * Copyright (c) 2012, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
* Infrastructure to support tracking of last committed llog record
*/
struct osp_id_tracker {
- cfs_spinlock_t otr_lock;
+ spinlock_t otr_lock;
__u32 otr_next_id;
__u32 otr_committed_id;
/* callback is register once per diskfs -- that's the whole point */
/*
* Precreation pool
*/
- cfs_spinlock_t opd_pre_lock;
+ spinlock_t opd_pre_lock;
/* last id assigned in creation */
__u64 opd_pre_used_id;
/* last created id OST reported, next-created - available id's */
int opd_pre_max_grow_count;
/* whether to grow precreation window next time or not */
int opd_pre_grow_slow;
+ /* cleaning up orphans or recreating missing objects */
+ int opd_pre_recovering;
/*
* OST synchronization
*/
- cfs_spinlock_t opd_syn_lock;
+ spinlock_t opd_syn_lock;
/* unique generation, to recognize start of new records in the llog */
struct llog_gen opd_syn_generation;
/* number of changes to sync, used to wake up sync thread */
/* osp_dev.c */
void osp_update_last_id(struct osp_device *d, obd_id objid);
+extern struct llog_operations osp_mds_ost_orig_logops;
/* osp_precreate.c */
int osp_init_precreate(struct osp_device *d);
/* lproc_osp.c */
void lprocfs_osp_init_vars(struct lprocfs_static_vars *lvars);
+void osp_lprocfs_init(struct osp_device *osp);
/* osp_sync.c */
int osp_sync_declare_add(const struct lu_env *env, struct osp_object *o,