Whamcloud - gitweb
LU-3677 mdt: Set HSM dirty open-for-write file when evicted.
[fs/lustre-release.git] / lustre / include / md_object.h
index 9d76354..304646c 100644 (file)
@@ -27,7 +27,7 @@
  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2011, 2012, Intel Corporation.
+ * Copyright (c) 2011, 2013, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -64,13 +64,6 @@ struct md_object;
 struct obd_export;
 
 enum {
-        UCRED_INVALID   = -1,
-        UCRED_INIT      = 0,
-        UCRED_OLD       = 1,
-        UCRED_NEW       = 2
-};
-
-enum {
         MD_CAPAINFO_MAX = 5
 };
 
@@ -352,8 +345,8 @@ struct md_device_operations {
        int (*mdo_root_get)(const struct lu_env *env, struct md_device *m,
                            struct lu_fid *f);
 
-        int (*mdo_maxsize_get)(const struct lu_env *env, struct md_device *m,
-                               int *md_size, int *cookie_size);
+       int (*mdo_maxeasize_get)(const struct lu_env *env, struct md_device *m,
+                               int *easize);
 
         int (*mdo_statfs)(const struct lu_env *env, struct md_device *m,
                           struct obd_statfs *sfs);
@@ -503,11 +496,6 @@ static inline struct md_device *md_obj2dev(const struct md_object *o)
         return container_of0(o->mo_lu.lo_dev, struct md_device, md_lu_dev);
 }
 
-static inline struct seq_server_site *lu_site2seq(const struct lu_site *s)
-{
-       return s->ld_seq_site;
-}
-
 static inline int md_device_init(struct md_device *md, struct lu_device_type *t)
 {
         return lu_device_init(&md->md_lu_dev, t);
@@ -859,47 +847,16 @@ struct lu_local_obj_desc {
         cfs_list_t                       llod_linkage;
 };
 
-struct md_object *llo_store_resolve(const struct lu_env *env,
-                                    struct md_device *md,
-                                    struct dt_device *dt,
-                                    const char *path,
-                                    struct lu_fid *fid);
-
-struct md_object *llo_store_open(const struct lu_env *env,
-                                 struct md_device *md,
-                                 struct dt_device *dt,
-                                 const char *dirname,
-                                 const char *objname,
-                                 struct lu_fid *fid);
-
-struct md_object *llo_store_create_index(const struct lu_env *env,
-                                         struct md_device *md,
-                                         struct dt_device *dt,
-                                         const char *dirname,
-                                         const char *objname,
-                                         const struct lu_fid *fid,
-                                         const struct dt_index_features *feat);
-
-struct md_object *llo_store_create(const struct lu_env *env,
-                                   struct md_device *md,
-                                   struct dt_device *dt,
-                                   const char *dirname,
-                                   const char *objname,
-                                   const struct lu_fid *fid);
-
-void llo_local_obj_register(struct lu_local_obj_desc *);
-void llo_local_obj_unregister(struct lu_local_obj_desc *);
-
-int llo_local_objects_setup(const struct lu_env *env,
-                             struct md_device * md,
-                             struct dt_device * dt);
-
-int llo_global_init(void);
-void llo_global_fini(void);
-
 int lustre_buf2som(void *buf, int rc, struct md_som_data *msd);
 int lustre_buf2hsm(void *buf, int rc, struct md_hsm *mh);
-void lustre_hsm2buf(void *buf, struct md_hsm *mh);
+void lustre_hsm2buf(void *buf, const struct md_hsm *mh);
+
+enum {
+       UCRED_INVALID   = -1,
+       UCRED_INIT      = 0,
+       UCRED_OLD       = 1,
+       UCRED_NEW       = 2,
+};
 
 struct lu_ucred {
        __u32               uc_valid;