* For lu_object_conf flags
*/
typedef enum {
- /* Currently, only used for client-side object initialization. */
- LOC_F_NEW = 0x1,
+ /* This is a new object to be allocated, or the file
+ * corresponding to the object does not exists. */
+ LOC_F_NEW = 0x00000001,
} loc_flags_t;
/**
*/
struct lprocfs_stats *ls_stats;
struct lprocfs_stats *ls_time_stats;
+ /**
+ * XXX: a hack! fld has to find md_site via site, remove when possible
+ */
+ struct md_site *ld_md_site;
};
static inline struct lu_site_bkt_data *
void lu_object_add_top (struct lu_object_header *h, struct lu_object *o);
void lu_object_add (struct lu_object *before, struct lu_object *o);
+void lu_dev_add_linkage(struct lu_site *s, struct lu_device *d);
+void lu_dev_del_linkage(struct lu_site *s, struct lu_device *d);
+
/**
* Helpers to initialize and finalize device types.
*/
}
void lu_object_put(const struct lu_env *env, struct lu_object *o);
+void lu_object_put_nocache(const struct lu_env *env, struct lu_object *o);
int lu_site_purge(const struct lu_env *env, struct lu_site *s, int nr);
* from enum lu_context_tag.
*/
__u32 lc_tags;
+ enum lu_context_state lc_state;
/**
* Pointer to the home service thread. NULL for other execution
* contexts.
* detail.
*/
void **lc_value;
- enum lu_context_state lc_state;
/**
* Linkage into a list of all remembered contexts. Only
* `non-transient' contexts, i.e., ones created for service threads