+struct ll_uctxt;
+
+struct md_ops {
+ int (*m_getstatus)(struct obd_export *, struct ll_fid *);
+ int (*m_change_cbdata)(struct obd_export *, struct ll_fid *,
+ ldlm_iterator_t, void *);
+ int (*m_change_cbdata_name)(struct obd_export *, struct ll_fid *,
+ char *, int, struct ll_fid *,
+ ldlm_iterator_t, void *);
+ int (*m_close)(struct obd_export *, struct obdo *,
+ struct obd_client_handle *,
+ struct ptlrpc_request **);
+ int (*m_create)(struct obd_export *, struct mdc_op_data *,
+ const void *, int, int, __u32, __u32,
+ __u64, struct ptlrpc_request **);
+ int (*m_done_writing)(struct obd_export *, struct obdo *);
+ int (*m_enqueue)(struct obd_export *, int, struct lookup_intent *,
+ int, struct mdc_op_data *, struct lustre_handle *,
+ void *, int, ldlm_completion_callback,
+ ldlm_blocking_callback, void *);
+ int (*m_getattr)(struct obd_export *, struct ll_fid *,
+ unsigned long, unsigned int,
+ struct ptlrpc_request **);
+ int (*m_getattr_name)(struct obd_export *, struct ll_fid *,
+ char *, int, unsigned long,
+ unsigned int, struct ptlrpc_request **);
+ int (*m_intent_lock)(struct obd_export *, struct ll_uctxt *,
+ struct ll_fid *, const char *, int,
+ void *, int, struct ll_fid *,
+ struct lookup_intent *, int,
+ struct ptlrpc_request **,
+ ldlm_blocking_callback);
+ int (*m_link)(struct obd_export *, struct mdc_op_data *,
+ struct ptlrpc_request **);
+ int (*m_rename)(struct obd_export *, struct mdc_op_data *,
+ const char *, int, const char *, int,
+ struct ptlrpc_request **);
+ int (*m_setattr)(struct obd_export *, struct mdc_op_data *,
+ struct iattr *, void *, int , void *, int,
+ struct ptlrpc_request **);
+ int (*m_sync)(struct obd_export *, struct ll_fid *,
+ struct ptlrpc_request **);
+ int (*m_readpage)(struct obd_export *, struct ll_fid *,
+ __u64, struct page *, struct ptlrpc_request **);
+ int (*m_unlink)(struct obd_export *, struct mdc_op_data *,
+ struct ptlrpc_request **);
+ int (*m_valid_attrs)(struct obd_export *, struct ll_fid *);
+ struct obd_device * (*m_get_real_obd)(struct obd_export *,
+ char *name, int len);
+
+ int (*m_req2lustre_md)(struct obd_export *exp,
+ struct ptlrpc_request *req, unsigned int offset,
+ struct obd_export *osc_exp, struct lustre_md *md);
+ int (*m_set_open_replay_data)(struct obd_export *exp,
+ struct obd_client_handle *och,
+ struct ptlrpc_request *open_req);
+ int (*m_clear_open_replay_data)(struct obd_export *exp,
+ struct obd_client_handle *och);
+ int (*m_store_inode_generation)(struct obd_export *exp,
+ struct ptlrpc_request *req, int reqoff,
+ int repoff);
+ int (*m_set_lock_data)(struct obd_export *exp, __u64 *l, void *data);
+
+ /*
+ * NOTE: If adding ops, add another LPROCFS_OBD_OP_INIT() line
+ * to lprocfs_alloc_obd_stats() in obdclass/lprocfs_status.c.
+ * Also, add a wrapper function in include/linux/obd_class.h.
+ */
+};