Whamcloud - gitweb
Introduction of lu_env.
[fs/lustre-release.git] / lustre / cmm / mdc_internal.h
index 4ae5048..7d08740 100644 (file)
@@ -7,7 +7,7 @@
  *
  *  Copyright (C) 2006 Cluster File Systems, Inc.
  *   Author: Mike Pershin <tappro@clusterfs.com>
- *   
+ *
  *   This file is part of the Lustre file system, http://www.lustre.org
  *   Lustre is a trademark of Cluster File Systems, Inc.
  *
 #include <lustre_net.h>
 #include <obd.h>
 #include <md_object.h>
+
 struct mdc_cli_desc {
-        struct obd_connect_data  cl_conn_data;
+        struct lustre_handle     cl_conn;
+        /* uuid of remote MDT to connect */
+        struct obd_uuid          cl_srv_uuid;
+        /* mdc uuid */
         struct obd_uuid          cl_cli_uuid;
+        /* export of mdc obd */
         struct obd_export        *cl_exp;
 };
 
@@ -45,7 +50,7 @@ struct mdc_device {
         struct md_device        mc_md_dev;
         /* other MD servers in cluster */
         struct list_head        mc_linkage;
-        __u32                   mc_num;
+        mdsno_t                 mc_num;
         struct mdc_cli_desc     mc_desc;
 };
 
@@ -88,8 +93,14 @@ static inline struct mdc_device *lu2mdc_dev(struct lu_device *ld)
        return container_of0(ld, struct mdc_device, mc_md_dev.md_lu_dev);
 }
 
-struct lu_object *mdc_object_alloc(const struct lu_context *,
+struct lu_object *mdc_object_alloc(const struct lu_env *,
                                    const struct lu_object_header *,
                                    struct lu_device *);
+#ifdef HAVE_SPLIT_SUPPORT
+int mdc_send_page(struct cmm_device *cmm, const struct lu_env *env,
+                  struct md_object *mo, struct page *page, __u32 end,
+                  struct md_ucred *uc);
+#endif
+
 #endif /* __KERNEL__ */
 #endif /* _CMM_MDC_INTERNAL_H */