Home
last modified time | relevance | path

Searched refs:lu_env (Results 1 – 25 of 70) sorted by relevance

123

/drivers/staging/lustre/lustre/include/
Dcl_object.h143 int (*cdo_req_init)(const struct lu_env *env, struct cl_device *dev,
322 int (*coo_page_init)(const struct lu_env *env, struct cl_object *obj,
331 int (*coo_lock_init)(const struct lu_env *env,
343 int (*coo_io_init)(const struct lu_env *env,
356 int (*coo_attr_get)(const struct lu_env *env, struct cl_object *obj,
369 int (*coo_attr_set)(const struct lu_env *env, struct cl_object *obj,
377 int (*coo_conf_set)(const struct lu_env *env, struct cl_object *obj,
387 int (*coo_glimpse)(const struct lu_env *env,
844 struct page *(*cpo_vmpage)(const struct lu_env *env,
855 int (*cpo_own)(const struct lu_env *env,
[all …]
Dlclient.h49 int cl_glimpse_lock(const struct lu_env *env, struct cl_io *io,
114 int cl_is_normalio(const struct lu_env *env, const struct cl_io *io);
125 static inline struct ccc_thread_info *ccc_env_info(const struct lu_env *env) in ccc_env_info()
134 static inline struct cl_attr *ccc_env_thread_attr(const struct lu_env *env) in ccc_env_thread_attr()
142 static inline struct cl_io *ccc_env_thread_io(const struct lu_env *env) in ccc_env_thread_io()
154 static inline struct ccc_session *ccc_env_session(const struct lu_env *env) in ccc_env_session()
163 static inline struct ccc_io *ccc_env_io(const struct lu_env *env) in ccc_env_io()
258 int ccc_device_init (const struct lu_env *env,
261 struct lu_device *ccc_device_fini (const struct lu_env *env,
263 struct lu_device *ccc_device_alloc(const struct lu_env *env,
[all …]
Dlustre_log.h86 int llog_init_handle(const struct lu_env *env, struct llog_handle *handle,
88 int llog_process(const struct lu_env *env, struct llog_handle *loghandle,
90 int llog_process_or_fork(const struct lu_env *env,
93 int llog_open(const struct lu_env *env, struct llog_ctxt *ctxt,
96 int llog_close(const struct lu_env *env, struct llog_handle *cathandle);
97 int llog_backup(const struct lu_env *env, struct obd_device *obd,
136 int llog_cat_close(const struct lu_env *env, struct llog_handle *cathandle);
137 int llog_cat_process(const struct lu_env *env, struct llog_handle *cat_llh,
141 int llog_setup(const struct lu_env *env, struct obd_device *obd,
144 int __llog_ctxt_put(const struct lu_env *env, struct llog_ctxt *ctxt);
[all …]
Dlu_object.h103 struct lu_env;
141 struct lu_object *(*ldo_object_alloc)(const struct lu_env *env,
147 int (*ldo_process_config)(const struct lu_env *env,
149 int (*ldo_recovery_complete)(const struct lu_env *,
158 int (*ldo_prepare)(const struct lu_env *,
192 typedef int (*lu_printer_t)(const struct lu_env *env,
210 int (*loo_object_init)(const struct lu_env *env,
218 int (*loo_object_start)(const struct lu_env *env,
225 void (*loo_object_delete)(const struct lu_env *env,
231 void (*loo_object_free)(const struct lu_env *env,
[all …]
/drivers/staging/lustre/lustre/lov/
Dlov_cl_internal.h132 struct lu_env *emrg_env;
432 const struct lu_env *lse_env;
480 struct lu_env *sub_env;
582 int lov_object_init(const struct lu_env *env, struct lu_object *obj,
584 int lovsub_object_init(const struct lu_env *env, struct lu_object *obj,
586 int lov_lock_init(const struct lu_env *env, struct cl_object *obj,
588 int lov_io_init(const struct lu_env *env, struct cl_object *obj,
590 int lovsub_lock_init(const struct lu_env *env, struct cl_object *obj,
593 int lov_lock_init_raid0(const struct lu_env *env, struct cl_object *obj,
595 int lov_lock_init_empty(const struct lu_env *env, struct cl_object *obj,
[all …]
Dlov_object.c57 int (*llo_init)(const struct lu_env *env, struct lov_device *dev,
61 int (*llo_delete)(const struct lu_env *env, struct lov_object *lov,
63 void (*llo_fini)(const struct lu_env *env, struct lov_object *lov,
65 void (*llo_install)(const struct lu_env *env, struct lov_object *lov,
67 int (*llo_print)(const struct lu_env *env, void *cookie,
69 int (*llo_page_init)(const struct lu_env *env, struct cl_object *obj,
71 int (*llo_lock_init)(const struct lu_env *env,
74 int (*llo_io_init)(const struct lu_env *env,
76 int (*llo_getattr)(const struct lu_env *env, struct cl_object *obj,
80 static int lov_layout_wait(const struct lu_env *env, struct lov_object *lov);
[all …]
Dlovsub_lock.c55 static void lovsub_lock_fini(const struct lu_env *env, in lovsub_lock_fini()
65 static void lovsub_parent_lock(const struct lu_env *env, struct lov_lock *lov) in lovsub_parent_lock()
75 static void lovsub_parent_unlock(const struct lu_env *env, struct lov_lock *lov) in lovsub_parent_unlock()
90 static void lovsub_lock_state(const struct lu_env *env, in lovsub_lock_state()
115 static unsigned long lovsub_lock_weigh(const struct lu_env *env, in lovsub_lock_weigh()
190 int lov_sublock_modify(const struct lu_env *env, struct lov_lock *lov, in lov_sublock_modify()
223 static int lovsub_lock_modify(const struct lu_env *env, in lovsub_lock_modify()
246 static int lovsub_lock_closure(const struct lu_env *env, in lovsub_lock_closure()
273 static int lovsub_lock_delete_one(const struct lu_env *env, in lovsub_lock_delete_one()
381 static void lovsub_lock_delete(const struct lu_env *env, in lovsub_lock_delete()
[all …]
Dlov_io.c60 static void lov_io_sub_fini(const struct lu_env *env, struct lov_io *lio, in lov_io_sub_fini()
134 static int lov_io_sub_init(const struct lu_env *env, struct lov_io *lio, in lov_io_sub_init()
217 struct lov_io_sub *lov_sub_get(const struct lu_env *env, in lov_sub_get()
259 struct lov_io_sub *lov_page_subio(const struct lu_env *env, struct lov_io *lio, in lov_page_subio()
275 static int lov_io_subio_init(const struct lu_env *env, struct lov_io *lio, in lov_io_subio_init()
355 static void lov_io_fini(const struct lu_env *env, const struct cl_io_slice *ios) in lov_io_fini()
380 static int lov_io_iter_init(const struct lu_env *env, in lov_io_iter_init()
427 static int lov_io_rw_iter_init(const struct lu_env *env, in lov_io_rw_iter_init()
463 static int lov_io_call(const struct lu_env *env, struct lov_io *lio, in lov_io_call()
464 int (*iofunc)(const struct lu_env *, struct cl_io *)) in lov_io_call() argument
[all …]
Dlovsub_dev.c53 static void lovsub_req_completion(const struct lu_env *env, in lovsub_req_completion()
67 static void lovsub_req_attr_set(const struct lu_env *env, in lovsub_req_attr_set()
93 static int lovsub_device_init(const struct lu_env *env, struct lu_device *d, in lovsub_device_init()
115 static struct lu_device *lovsub_device_fini(const struct lu_env *env, in lovsub_device_fini()
128 static struct lu_device *lovsub_device_free(const struct lu_env *env, in lovsub_device_free()
143 static int lovsub_req_init(const struct lu_env *env, struct cl_device *dev, in lovsub_req_init()
168 static struct lu_device *lovsub_device_alloc(const struct lu_env *env, in lovsub_device_alloc()
Dlov_lock.c49 static struct cl_lock_closure *lov_closure_get(const struct lu_env *env,
52 static int lov_lock_unuse(const struct lu_env *env,
60 static struct lov_sublock_env *lov_sublock_env_get(const struct lu_env *env, in lov_sublock_env_get()
103 static void lov_sublock_adopt(const struct lu_env *env, struct lov_lock *lck, in lov_sublock_adopt()
136 static struct cl_lock *lov_sublock_alloc(const struct lu_env *env, in lov_sublock_alloc()
182 static void lov_sublock_unlock(const struct lu_env *env, in lov_sublock_unlock()
192 static int lov_sublock_lock(const struct lu_env *env, in lov_sublock_lock()
288 static int lov_lock_sub_init(const struct lu_env *env, in lov_lock_sub_init()
361 static int lov_sublock_release(const struct lu_env *env, struct lov_lock *lck, in lov_sublock_release()
406 static void lov_sublock_hold(const struct lu_env *env, struct lov_lock *lck, in lov_sublock_hold()
[all …]
Dlov_page.c66 static void lov_page_fini(const struct lu_env *env, in lov_page_fini()
82 static int lov_page_own(const struct lu_env *env, in lov_page_own()
101 static void lov_page_assume(const struct lu_env *env, in lov_page_assume()
107 static int lov_page_cache_add(const struct lu_env *env, in lov_page_cache_add()
130 static int lov_page_print(const struct lu_env *env, in lov_page_print()
151 static void lov_empty_page_fini(const struct lu_env *env, in lov_empty_page_fini()
157 int lov_page_init_raid0(const struct lu_env *env, struct cl_object *obj, in lov_page_init_raid0()
216 int lov_page_init_empty(const struct lu_env *env, struct cl_object *obj, in lov_page_init_empty()
Dlovsub_object.c55 int lovsub_object_init(const struct lu_env *env, struct lu_object *obj, in lovsub_object_init()
76 static void lovsub_object_free(const struct lu_env *env, struct lu_object *obj) in lovsub_object_free()
97 static int lovsub_object_print(const struct lu_env *env, void *cookie, in lovsub_object_print()
105 static int lovsub_attr_set(const struct lu_env *env, struct cl_object *obj, in lovsub_attr_set()
114 static int lovsub_object_glimpse(const struct lu_env *env, in lovsub_object_glimpse()
139 struct lu_object *lovsub_object_alloc(const struct lu_env *env, in lovsub_object_alloc()
/drivers/staging/lustre/lustre/osc/
Dosc_cl_internal.h414 int osc_lock_init(const struct lu_env *env,
417 int osc_io_init (const struct lu_env *env,
419 int osc_req_init (const struct lu_env *env, struct cl_device *dev,
421 struct lu_object *osc_object_alloc(const struct lu_env *env,
424 int osc_page_init(const struct lu_env *env, struct cl_object *obj,
429 int osc_lvb_print (const struct lu_env *env, void *cookie,
432 void osc_page_submit(const struct lu_env *env, struct osc_page *opg,
434 int osc_cancel_async_page(const struct lu_env *env, struct osc_page *ops);
439 int osc_queue_async_io(const struct lu_env *env, struct cl_io *io,
441 int osc_teardown_async_page(const struct lu_env *env, struct osc_object *obj,
[all …]
Dosc_page.c47 static int osc_lru_reserve(const struct lu_env *env, struct osc_object *obj,
62 static int osc_page_is_dlocked(const struct lu_env *env,
99 static int osc_page_protected(const struct lu_env *env,
152 static int osc_page_protected(const struct lu_env *env, in osc_page_protected()
165 static void osc_page_fini(const struct lu_env *env, in osc_page_fini()
184 static void osc_page_transfer_put(const struct lu_env *env, in osc_page_transfer_put()
201 static void osc_page_transfer_add(const struct lu_env *env, in osc_page_transfer_add()
216 static int osc_page_cache_add(const struct lu_env *env, in osc_page_cache_add()
254 static int osc_page_addref_lock(const struct lu_env *env, in osc_page_addref_lock()
275 static void osc_page_putref_lock(const struct lu_env *env, in osc_page_putref_lock()
[all …]
Dosc_io.c62 static struct osc_io *cl2osc_io(const struct lu_env *env, in cl2osc_io()
87 static void osc_io_fini(const struct lu_env *env, const struct cl_io_slice *io) in osc_io_fini()
98 static int osc_io_submit(const struct lu_env *env, in osc_io_submit()
188 static void osc_page_touch_at(const struct lu_env *env, in osc_page_touch_at()
232 static void osc_page_touch(const struct lu_env *env, in osc_page_touch()
255 static int osc_io_prepare_write(const struct lu_env *env, in osc_io_prepare_write()
281 static int osc_io_commit_write(const struct lu_env *env, in osc_io_commit_write()
310 static int osc_io_fault_start(const struct lu_env *env, in osc_io_fault_start()
343 static int trunc_check_cb(const struct lu_env *env, struct cl_io *io, in trunc_check_cb()
373 static void osc_trunc_check(const struct lu_env *env, struct cl_io *io, in osc_trunc_check()
[all …]
Dosc_lock.c63 static void osc_lock_to_lockless(const struct lu_env *env,
146 static void osc_lock_detach(const struct lu_env *env, struct osc_lock *olck) in osc_lock_detach()
201 static int osc_lock_unuse(const struct lu_env *env, in osc_lock_unuse()
237 static void osc_lock_fini(const struct lu_env *env, in osc_lock_fini()
257 static void osc_lock_build_policy(const struct lu_env *env, in osc_lock_build_policy()
318 static void osc_ast_data_put(const struct lu_env *env, struct osc_lock *olck) in osc_ast_data_put()
337 static void osc_lock_lvb_update(const struct lu_env *env, struct osc_lock *olck, in osc_lock_lvb_update()
401 static void osc_lock_granted(const struct lu_env *env, struct osc_lock *olck, in osc_lock_granted()
441 static void osc_lock_upcall0(const struct lu_env *env, struct osc_lock *olck) in osc_lock_upcall0()
488 struct lu_env *env; in osc_lock_upcall()
[all …]
/drivers/staging/lustre/lustre/obdclass/
Dcl_page.c51 static void cl_page_delete0(const struct lu_env *env, struct cl_page *pg,
148 int cl_page_gang_lookup(const struct lu_env *env, struct cl_object *obj, in cl_page_gang_lookup()
243 static void cl_page_free(const struct lu_env *env, struct cl_page *page) in cl_page_free()
279 static struct cl_page *cl_page_alloc(const struct lu_env *env, in cl_page_alloc()
336 static struct cl_page *cl_page_find0(const struct lu_env *env, in cl_page_find0()
436 struct cl_page *cl_page_find(const struct lu_env *env, struct cl_object *o, in cl_page_find()
444 struct cl_page *cl_page_find_sub(const struct lu_env *env, struct cl_object *o, in cl_page_find_sub()
488 static void cl_page_state_set0(const struct lu_env *env, in cl_page_state_set0()
547 static void cl_page_state_set(const struct lu_env *env, in cl_page_state_set()
576 void cl_page_put(const struct lu_env *env, struct cl_page *page) in cl_page_put()
[all …]
Dcl_lock.c76 static int cl_lock_invariant_trusted(const struct lu_env *env, in cl_lock_invariant_trusted()
92 static int cl_lock_invariant(const struct lu_env *env, in cl_lock_invariant()
115 static struct cl_thread_counters *cl_lock_counters(const struct lu_env *env, in cl_lock_counters()
127 static void cl_lock_trace0(int level, const struct lu_env *env, in cl_lock_trace0()
155 static void cl_lock_lockdep_acquire(const struct lu_env *env, in cl_lock_lockdep_acquire()
162 static void cl_lock_lockdep_release(const struct lu_env *env, in cl_lock_lockdep_release()
173 static void cl_lock_lockdep_acquire(const struct lu_env *env, in cl_lock_lockdep_acquire()
176 static void cl_lock_lockdep_release(const struct lu_env *env, in cl_lock_lockdep_release()
250 static void cl_lock_free(const struct lu_env *env, struct cl_lock *lock) in cl_lock_free()
285 void cl_lock_put(const struct lu_env *env, struct cl_lock *lock) in cl_lock_put()
[all …]
Dcl_object.c108 struct cl_object *cl_object_find(const struct lu_env *env, in cl_object_find()
125 void cl_object_put(const struct lu_env *env, struct cl_object *o) in cl_object_put()
209 int cl_object_attr_get(const struct lu_env *env, struct cl_object *obj, in cl_object_attr_get()
240 int cl_object_attr_set(const struct lu_env *env, struct cl_object *obj, in cl_object_attr_set()
273 int cl_object_glimpse(const struct lu_env *env, struct cl_object *obj, in cl_object_glimpse()
300 int cl_conf_set(const struct lu_env *env, struct cl_object *obj, in cl_conf_set()
326 void cl_object_kill(const struct lu_env *env, struct cl_object *obj) in cl_object_kill()
349 void cl_object_prune(const struct lu_env *env, struct cl_object *obj) in cl_object_prune()
499 struct lu_env ce_lu;
659 static struct lu_env *cl_env_new(__u32 ctx_tags, __u32 ses_tags, void *debug) in cl_env_new()
[all …]
Dcl_io.c74 int cl_io_is_going(const struct lu_env *env) in cl_io_is_going()
102 void cl_io_fini(const struct lu_env *env, struct cl_io *io) in cl_io_fini()
149 static int cl_io_init0(const struct lu_env *env, struct cl_io *io, in cl_io_init0()
183 int cl_io_sub_init(const struct lu_env *env, struct cl_io *io, in cl_io_sub_init()
205 int cl_io_init(const struct lu_env *env, struct cl_io *io, in cl_io_init()
223 int cl_io_rw_init(const struct lu_env *env, struct cl_io *io, in cl_io_rw_init()
376 static int cl_lockset_lock_one(const struct lu_env *env, in cl_lockset_lock_one()
400 static void cl_lock_link_fini(const struct lu_env *env, struct cl_io *io, in cl_lock_link_fini()
414 static int cl_lockset_lock(const struct lu_env *env, struct cl_io *io, in cl_lockset_lock()
455 int cl_io_lock(const struct lu_env *env, struct cl_io *io) in cl_io_lock()
[all …]
Dllog_internal.h49 const struct lu_env *lpi_env;
69 int class_config_dump_handler(const struct lu_env *env,
72 int llog_process_or_fork(const struct lu_env *env,
75 int llog_cat_cleanup(const struct lu_env *env, struct llog_handle *cathandle,
/drivers/staging/lustre/lustre/llite/
Dvvp_page.c63 static void vvp_page_fini(const struct lu_env *env, in vvp_page_fini()
77 static int vvp_page_own(const struct lu_env *env, in vvp_page_own()
102 static void vvp_page_assume(const struct lu_env *env, in vvp_page_assume()
113 static void vvp_page_unassume(const struct lu_env *env, in vvp_page_unassume()
123 static void vvp_page_disown(const struct lu_env *env, in vvp_page_disown()
134 static void vvp_page_discard(const struct lu_env *env, in vvp_page_discard()
157 static int vvp_page_unmap(const struct lu_env *env, in vvp_page_unmap()
176 static void vvp_page_delete(const struct lu_env *env, in vvp_page_delete()
196 static void vvp_page_export(const struct lu_env *env, in vvp_page_export()
210 static int vvp_page_is_vmlocked(const struct lu_env *env, in vvp_page_is_vmlocked()
[all …]
Dvvp_io.c49 static struct vvp_io *cl2vvp_io(const struct lu_env *env,
55 int cl_is_normalio(const struct lu_env *env, const struct cl_io *io) in cl_is_normalio()
70 static bool can_populate_pages(const struct lu_env *env, struct cl_io *io, in can_populate_pages()
103 static int vvp_io_fault_iter_init(const struct lu_env *env, in vvp_io_fault_iter_init()
115 static void vvp_io_fini(const struct lu_env *env, const struct cl_io_slice *ios) in vvp_io_fini()
176 static void vvp_io_fault_fini(const struct lu_env *env, in vvp_io_fault_fini()
204 static int vvp_mmap_locks(const struct lu_env *env, in vvp_mmap_locks()
287 static int vvp_io_rw_lock(const struct lu_env *env, struct cl_io *io, in vvp_io_rw_lock()
306 static int vvp_io_read_lock(const struct lu_env *env, in vvp_io_read_lock()
319 static int vvp_io_fault_lock(const struct lu_env *env, in vvp_io_fault_lock()
[all …]
Dvvp_internal.h45 int vvp_io_init (const struct lu_env *env,
47 int vvp_lock_init (const struct lu_env *env,
50 int vvp_page_init (const struct lu_env *env,
53 struct lu_object *vvp_object_alloc(const struct lu_env *env,
/drivers/staging/lustre/lustre/lclient/
Dlcommon_cl.c167 int ccc_device_init(const struct lu_env *env, struct lu_device *d, in ccc_device_init()
187 struct lu_device *ccc_device_fini(const struct lu_env *env, in ccc_device_fini()
193 struct lu_device *ccc_device_alloc(const struct lu_env *env, in ccc_device_alloc()
232 struct lu_device *ccc_device_free(const struct lu_env *env, in ccc_device_free()
248 int ccc_req_init(const struct lu_env *env, struct cl_device *dev, in ccc_req_init()
268 static struct lu_env *ccc_inode_fini_env;
321 struct lu_object *ccc_object_alloc(const struct lu_env *env, in ccc_object_alloc()
347 int ccc_object_init0(const struct lu_env *env, in ccc_object_init0()
357 int ccc_object_init(const struct lu_env *env, struct lu_object *obj, in ccc_object_init()
380 void ccc_object_free(const struct lu_env *env, struct lu_object *obj) in ccc_object_free()
[all …]

123