Home
last modified time | relevance | path

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

/linux-4.1.27/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 …]
Ddt_object.h99 typedef void (*dt_cb_t)(struct lu_env *env, struct thandle *th,
122 int (*dt_statfs)(const struct lu_env *env,
127 struct thandle *(*dt_trans_create)(const struct lu_env *env,
132 int (*dt_trans_start)(const struct lu_env *env,
137 int (*dt_trans_stop)(const struct lu_env *env,
147 int (*dt_root_get)(const struct lu_env *env,
152 void (*dt_conf_get)(const struct lu_env *env,
158 int (*dt_sync)(const struct lu_env *env, struct dt_device *dev);
159 int (*dt_ro)(const struct lu_env *env, struct dt_device *dev);
168 int (*dt_commit_async)(const struct lu_env *env,
[all …]
Dlclient.h49 int cl_glimpse_lock(const struct lu_env *env, struct cl_io *io,
115 int cl_is_normalio(const struct lu_env *env, const struct cl_io *io);
126 static inline struct ccc_thread_info *ccc_env_info(const struct lu_env *env) in ccc_env_info()
135 static inline struct cl_attr *ccc_env_thread_attr(const struct lu_env *env) in ccc_env_thread_attr()
143 static inline struct cl_io *ccc_env_thread_io(const struct lu_env *env) in ccc_env_thread_io()
155 static inline struct ccc_session *ccc_env_session(const struct lu_env *env) in ccc_env_session()
164 static inline struct ccc_io *ccc_env_io(const struct lu_env *env) in ccc_env_io()
261 int ccc_device_init (const struct lu_env *env,
264 struct lu_device *ccc_device_fini (const struct lu_env *env,
266 struct lu_device *ccc_device_alloc(const struct lu_env *env,
[all …]
Dlustre_log.h118 int llog_init_handle(const struct lu_env *env, struct llog_handle *handle,
120 int llog_copy_handler(const struct lu_env *env, struct llog_handle *llh,
122 int llog_process(const struct lu_env *env, struct llog_handle *loghandle,
124 int llog_process_or_fork(const struct lu_env *env,
127 int llog_reverse_process(const struct lu_env *env,
130 int llog_cancel_rec(const struct lu_env *env, struct llog_handle *loghandle,
132 int llog_open(const struct lu_env *env, struct llog_ctxt *ctxt,
135 int llog_close(const struct lu_env *env, struct llog_handle *cathandle);
136 int llog_is_empty(const struct lu_env *env, struct llog_ctxt *ctxt,
138 int llog_backup(const struct lu_env *env, struct obd_device *obd,
[all …]
Dlustre_quota.h87 int (*qmth_quotactl)(const struct lu_env *, struct lu_device *,
91 int (*qmth_dqacq)(const struct lu_env *, struct lu_device *,
95 int (*qmth_intent_policy)(const struct lu_env *, struct lu_device *,
172 struct qsd_instance *qsd_init(const struct lu_env *, char *, struct dt_device *,
174 int qsd_prepare(const struct lu_env *, struct qsd_instance *);
175 int qsd_start(const struct lu_env *, struct qsd_instance *);
176 void qsd_fini(const struct lu_env *, struct qsd_instance *);
177 int qsd_op_begin(const struct lu_env *, struct qsd_instance *,
179 void qsd_op_end(const struct lu_env *, struct qsd_instance *,
181 void qsd_op_adjust(const struct lu_env *, struct qsd_instance *,
[all …]
Dlu_object.h104 struct lu_env;
142 struct lu_object *(*ldo_object_alloc)(const struct lu_env *env,
148 int (*ldo_process_config)(const struct lu_env *env,
150 int (*ldo_recovery_complete)(const struct lu_env *,
159 int (*ldo_prepare)(const struct lu_env *,
193 typedef int (*lu_printer_t)(const struct lu_env *env,
211 int (*loo_object_init)(const struct lu_env *env,
219 int (*loo_object_start)(const struct lu_env *env,
226 void (*loo_object_delete)(const struct lu_env *env,
232 void (*loo_object_free)(const struct lu_env *env,
[all …]
Dlustre_fld.h141 __u32 flags, const struct lu_env *env);
145 const struct lu_env *env);
148 const struct lu_env *env);
Dlustre_fid.h158 struct lu_env;
441 const struct lu_env *env);
444 const struct lu_env *env);
448 const struct lu_env *env);
452 const struct lu_env *env);
456 const struct lu_env *env);
469 int seq_client_alloc_fid(const struct lu_env *env, struct lu_client_seq *seq,
471 int seq_client_get_seq(const struct lu_env *env, struct lu_client_seq *seq,
473 int seq_site_fini(const struct lu_env *env, struct seq_server_site *ss);
475 int fid_is_local(const struct lu_env *env,
Dobd.h1106 int (*o_get_info)(const struct lu_env *env, struct obd_export *,
1109 int (*o_set_info_async)(const struct lu_env *, struct obd_export *,
1128 int (*o_connect)(const struct lu_env *env,
1132 int (*o_reconnect)(const struct lu_env *env,
1152 int (*o_statfs)(const struct lu_env *, struct obd_export *exp,
1163 int (*o_create)(const struct lu_env *env, struct obd_export *exp,
1166 int (*o_destroy)(const struct lu_env *env, struct obd_export *exp,
1170 int (*o_setattr)(const struct lu_env *, struct obd_export *exp,
1175 int (*o_getattr)(const struct lu_env *env, struct obd_export *exp,
1181 int (*o_preprw)(const struct lu_env *env, int cmd,
[all …]
Dobd_class.h119 typedef int (*llog_cb_t)(const struct lu_env *, struct llog_handle *,
136 int class_config_llog_handler(const struct lu_env *env,
168 int class_config_parse_llog(const struct lu_env *env, struct llog_ctxt *ctxt,
170 int class_config_dump_llog(const struct lu_env *env, struct llog_ctxt *ctxt,
507 static inline int obd_get_info(const struct lu_env *env, in obd_get_info()
522 static inline int obd_set_info_async(const struct lu_env *env, in obd_set_info_async()
567 struct lu_env env; in obd_setup()
608 struct lu_env env; in obd_precleanup()
636 struct lu_env env; in obd_cleanup()
687 struct lu_env env; in obd_process_config()
[all …]
Dlustre_net.h485 typedef int (*ptlrpc_interpterer_t)(const struct lu_env *env,
507 struct lu_env;
1524 static inline int ptlrpc_req_interpret(const struct lu_env *env, in ptlrpc_req_interpret()
1827 struct lu_env *t_env;
2188 struct lu_env pc_env;
2369 int ptlrpc_check_set(const struct lu_env *env, struct ptlrpc_request_set *set);
2447 int (*cb)(const struct lu_env *, void *), void *data);
2862 int client_connect_import(const struct lu_env *env,
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
Dlov_cl_internal.h132 struct lu_env *emrg_env;
432 const struct lu_env *lse_env;
481 struct lu_env *sub_env;
583 int lov_object_init(const struct lu_env *env, struct lu_object *obj,
585 int lovsub_object_init(const struct lu_env *env, struct lu_object *obj,
587 int lov_lock_init(const struct lu_env *env, struct cl_object *obj,
589 int lov_io_init(const struct lu_env *env, struct cl_object *obj,
591 int lovsub_lock_init(const struct lu_env *env, struct cl_object *obj,
594 int lov_lock_init_raid0(const struct lu_env *env, struct cl_object *obj,
596 int lov_lock_init_empty(const struct lu_env *env, struct cl_object *obj,
[all …]
Dlov_object.c58 int (*llo_init)(const struct lu_env *env, struct lov_device *dev,
62 int (*llo_delete)(const struct lu_env *env, struct lov_object *lov,
64 void (*llo_fini)(const struct lu_env *env, struct lov_object *lov,
66 void (*llo_install)(const struct lu_env *env, struct lov_object *lov,
68 int (*llo_print)(const struct lu_env *env, void *cookie,
70 int (*llo_page_init)(const struct lu_env *env, struct cl_object *obj,
72 int (*llo_lock_init)(const struct lu_env *env,
75 int (*llo_io_init)(const struct lu_env *env,
77 int (*llo_getattr)(const struct lu_env *env, struct cl_object *obj,
81 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 …]
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_io.c59 static void lov_io_sub_fini(const struct lu_env *env, struct lov_io *lio, in lov_io_sub_fini()
135 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()
276 static int lov_io_subio_init(const struct lu_env *env, struct lov_io *lio, in lov_io_subio_init()
353 static void lov_io_fini(const struct lu_env *env, const struct cl_io_slice *ios) in lov_io_fini()
379 static int lov_io_iter_init(const struct lu_env *env, in lov_io_iter_init()
426 static int lov_io_rw_iter_init(const struct lu_env *env, in lov_io_rw_iter_init()
462 static int lov_io_call(const struct lu_env *env, struct lov_io *lio, in lov_io_call()
463 int (*iofunc)(const struct lu_env *, struct cl_io *)) in lov_io_call() argument
[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()
217 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()
141 struct lu_object *lovsub_object_alloc(const struct lu_env *env, in lovsub_object_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()
287 static int lov_lock_sub_init(const struct lu_env *env, in lov_lock_sub_init()
360 static int lov_sublock_release(const struct lu_env *env, struct lov_lock *lck, in lov_sublock_release()
405 static void lov_sublock_hold(const struct lu_env *env, struct lov_lock *lck, in lov_sublock_hold()
[all …]
Dlov_dev.c122 static void lov_req_completion(const struct lu_env *env, in lov_req_completion()
195 static struct lu_device *lov_device_fini(const struct lu_env *env, in lov_device_fini()
217 static int lov_device_init(const struct lu_env *env, struct lu_device *d, in lov_device_init()
257 static int lov_req_init(const struct lu_env *env, struct cl_device *dev, in lov_req_init()
294 static struct lu_device *lov_device_free(const struct lu_env *env, in lov_device_free()
309 static void lov_cl_del_target(const struct lu_env *env, struct lu_device *dev, in lov_cl_del_target()
354 static int lov_expand_targets(const struct lu_env *env, struct lov_device *dev) in lov_expand_targets()
394 static int lov_cl_add_target(const struct lu_env *env, struct lu_device *dev, in lov_cl_add_target()
437 static int lov_process_config(const struct lu_env *env, in lov_process_config()
472 static struct lu_device *lov_device_alloc(const struct lu_env *env, in lov_device_alloc()
Dlovsub_page.c53 static void lovsub_page_fini(const struct lu_env *env, in lovsub_page_fini()
62 int lovsub_page_init(const struct lu_env *env, struct cl_object *obj, in lovsub_page_init()
Dlov_obd.c215 static int lov_connect(const struct lu_env *env, in lov_connect()
1040 static int lov_create(const struct lu_env *env, struct obd_export *exp, in lov_create()
1080 static int lov_destroy(const struct lu_env *env, struct obd_export *exp, in lov_destroy()
1382 static int lov_statfs(const struct lu_env *env, struct obd_export *exp, in lov_statfs()
1969 static int lov_get_info(const struct lu_env *env, struct obd_export *exp, in lov_get_info()
2077 static int lov_set_info_async(const struct lu_env *env, struct obd_export *exp, in lov_set_info_async()
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
Dosc_cl_internal.h415 int osc_lock_init(const struct lu_env *env,
418 int osc_io_init (const struct lu_env *env,
420 int osc_req_init (const struct lu_env *env, struct cl_device *dev,
422 struct lu_object *osc_object_alloc(const struct lu_env *env,
425 int osc_page_init(const struct lu_env *env, struct cl_object *obj,
430 int osc_lvb_print (const struct lu_env *env, void *cookie,
433 void osc_page_submit(const struct lu_env *env, struct osc_page *opg,
435 int osc_cancel_async_page(const struct lu_env *env, struct osc_page *ops);
440 int osc_queue_async_io(const struct lu_env *env, struct cl_io *io,
442 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()
183 static void osc_page_transfer_put(const struct lu_env *env, in osc_page_transfer_put()
200 static void osc_page_transfer_add(const struct lu_env *env, in osc_page_transfer_add()
215 static int osc_page_cache_add(const struct lu_env *env, in osc_page_cache_add()
253 static int osc_page_addref_lock(const struct lu_env *env, in osc_page_addref_lock()
274 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()
88 static void osc_io_fini(const struct lu_env *env, const struct cl_io_slice *io) in osc_io_fini()
99 static int osc_io_submit(const struct lu_env *env, in osc_io_submit()
189 static void osc_page_touch_at(const struct lu_env *env, in osc_page_touch_at()
233 static void osc_page_touch(const struct lu_env *env, in osc_page_touch()
256 static int osc_io_prepare_write(const struct lu_env *env, in osc_io_prepare_write()
282 static int osc_io_commit_write(const struct lu_env *env, in osc_io_commit_write()
311 static int osc_io_fault_start(const struct lu_env *env, in osc_io_fault_start()
344 static int trunc_check_cb(const struct lu_env *env, struct cl_io *io, in trunc_check_cb()
374 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 …]
Dosc_object.c72 static int osc_object_init(const struct lu_env *env, struct lu_object *obj, in osc_object_init()
103 static void osc_object_free(const struct lu_env *env, struct lu_object *obj) in osc_object_free()
128 int osc_lvb_print(const struct lu_env *env, void *cookie, in osc_lvb_print()
136 static int osc_object_print(const struct lu_env *env, void *cookie, in osc_object_print()
152 static int osc_attr_get(const struct lu_env *env, struct cl_object *obj, in osc_attr_get()
162 int osc_attr_set(const struct lu_env *env, struct cl_object *obj, in osc_attr_set()
186 static int osc_object_glimpse(const struct lu_env *env, in osc_object_glimpse()
253 struct lu_object *osc_object_alloc(const struct lu_env *env, in osc_object_alloc()
Dosc_dev.c173 static int osc_cl_process_config(const struct lu_env *env, in osc_cl_process_config()
189 static int osc_device_init(const struct lu_env *env, struct lu_device *d, in osc_device_init()
195 static struct lu_device *osc_device_fini(const struct lu_env *env, in osc_device_fini()
201 static struct lu_device *osc_device_free(const struct lu_env *env, in osc_device_free()
211 static struct lu_device *osc_device_alloc(const struct lu_env *env, in osc_device_alloc()
Dosc_cache.c50 static int osc_extent_wait(const struct lu_env *env, struct osc_extent *ext,
52 static void osc_ap_completion(const struct lu_env *env, struct client_obd *cli,
54 static int osc_make_ready(const struct lu_env *env, struct osc_async_page *oap,
56 static int osc_refresh_count(const struct lu_env *env,
58 static int osc_io_unplug_async(const struct lu_env *env,
378 static void osc_extent_put(const struct lu_env *env, struct osc_extent *ext) in osc_extent_put()
525 static int osc_extent_merge(const struct lu_env *env, struct osc_extent *cur, in osc_extent_merge()
576 void osc_extent_release(const struct lu_env *env, struct osc_extent *ext) in osc_extent_release()
621 struct osc_extent *osc_extent_find(const struct lu_env *env, in osc_extent_find()
831 int osc_extent_finish(const struct lu_env *env, struct osc_extent *ext, in osc_extent_finish()
[all …]
Dosc_internal.h42 struct lu_env;
88 int osc_create(const struct lu_env *env, struct obd_export *exp,
130 int osc_build_rpc(const struct lu_env *env, struct client_obd *cli,
Dosc_request.c98 static int brw_interpret(const struct lu_env *env,
233 static int osc_getattr_interpret(const struct lu_env *env, in osc_getattr_interpret()
292 static int osc_getattr(const struct lu_env *env, struct obd_export *exp, in osc_getattr()
336 static int osc_setattr(const struct lu_env *env, struct obd_export *exp, in osc_setattr()
378 static int osc_setattr_interpret(const struct lu_env *env, in osc_setattr_interpret()
590 static int osc_sync_interpret(const struct lu_env *env, in osc_sync_interpret()
691 static int osc_destroy_interpret(const struct lu_env *env, in osc_destroy_interpret()
720 int osc_create(const struct lu_env *env, struct obd_export *exp, in osc_create()
754 static int osc_destroy(const struct lu_env *env, struct obd_export *exp, in osc_destroy()
891 static int osc_set_info_async(const struct lu_env *env, struct obd_export *exp,
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dvvp_page.c64 static void vvp_page_fini(const struct lu_env *env, in vvp_page_fini()
78 static int vvp_page_own(const struct lu_env *env, in vvp_page_own()
103 static void vvp_page_assume(const struct lu_env *env, in vvp_page_assume()
114 static void vvp_page_unassume(const struct lu_env *env, in vvp_page_unassume()
124 static void vvp_page_disown(const struct lu_env *env, in vvp_page_disown()
135 static void vvp_page_discard(const struct lu_env *env, in vvp_page_discard()
158 static int vvp_page_unmap(const struct lu_env *env, in vvp_page_unmap()
177 static void vvp_page_delete(const struct lu_env *env, in vvp_page_delete()
197 static void vvp_page_export(const struct lu_env *env, in vvp_page_export()
211 static int vvp_page_is_vmlocked(const struct lu_env *env, in vvp_page_is_vmlocked()
[all …]
Dvvp_internal.h46 int vvp_io_init (const struct lu_env *env,
48 int vvp_lock_init (const struct lu_env *env,
51 int vvp_page_init (const struct lu_env *env,
54 struct lu_object *vvp_object_alloc(const struct lu_env *env,
Dvvp_io.c50 static struct vvp_io *cl2vvp_io(const struct lu_env *env,
56 int cl_is_normalio(const struct lu_env *env, const struct cl_io *io) in cl_is_normalio()
71 static bool can_populate_pages(const struct lu_env *env, struct cl_io *io, in can_populate_pages()
104 static int vvp_io_fault_iter_init(const struct lu_env *env, in vvp_io_fault_iter_init()
116 static void vvp_io_fini(const struct lu_env *env, const struct cl_io_slice *ios) in vvp_io_fini()
177 static void vvp_io_fault_fini(const struct lu_env *env, in vvp_io_fault_fini()
205 static int vvp_mmap_locks(const struct lu_env *env, in vvp_mmap_locks()
288 static int vvp_io_rw_lock(const struct lu_env *env, struct cl_io *io, in vvp_io_rw_lock()
307 static int vvp_io_read_lock(const struct lu_env *env, in vvp_io_read_lock()
320 static int vvp_io_fault_lock(const struct lu_env *env, in vvp_io_fault_lock()
[all …]
Dvvp_object.c57 static int vvp_object_print(const struct lu_env *env, void *cookie, in vvp_object_print()
78 static int vvp_attr_get(const struct lu_env *env, struct cl_object *obj, in vvp_attr_get()
100 static int vvp_attr_set(const struct lu_env *env, struct cl_object *obj, in vvp_attr_set()
123 static int vvp_conf_set(const struct lu_env *env, struct cl_object *obj, in vvp_conf_set()
196 struct lu_object *vvp_object_alloc(const struct lu_env *env, in vvp_object_alloc()
Dvvp_dev.c140 static struct lu_device *vvp_device_alloc(const struct lu_env *env, in vvp_device_alloc()
201 struct lu_env *env; in cl_sb_init()
224 struct lu_env *env; in cl_sb_fini()
319 static struct cl_object *vvp_pgcache_obj(const struct lu_env *env, in vvp_pgcache_obj()
347 static loff_t vvp_pgcache_find(const struct lu_env *env, in vvp_pgcache_find()
401 static void vvp_pgcache_page_show(const struct lu_env *env, in vvp_pgcache_page_show()
436 struct lu_env *env; in vvp_pgcache_show()
477 struct lu_env *env; in vvp_pgcache_start()
501 struct lu_env *env; in vvp_pgcache_next()
Dvvp_lock.c61 static unsigned long vvp_lock_weigh(const struct lu_env *env, in vvp_lock_weigh()
81 int vvp_lock_init(const struct lu_env *env, struct cl_object *obj, in vvp_lock_init()
Drw.c68 struct lu_env *env = lcc->lcc_env; in ll_cl_fini()
91 struct lu_env *env; in ll_cl_init()
197 struct lu_env *env; in ll_cl_get()
223 struct lu_env *env = lcc->lcc_env; in ll_prepare_write()
254 struct lu_env *env; in ll_commit_write()
452 static int cl_read_ahead_page(const struct lu_env *env, struct cl_io *io, in cl_read_ahead_page()
493 static int ll_read_ahead_page(const struct lu_env *env, struct cl_io *io, in ll_read_ahead_page()
637 static int ll_read_ahead_pages(const struct lu_env *env, in ll_read_ahead_pages()
688 int ll_readahead(const struct lu_env *env, struct cl_io *io, in ll_readahead()
1126 struct lu_env *env; in ll_writepage()
[all …]
Drw26.c76 struct lu_env *env; in ll_invalidatepage()
120 struct lu_env *env; in ll_releasepage()
228 ssize_t ll_direct_rw_pages(const struct lu_env *env, struct cl_io *io, in ll_direct_rw_pages()
333 static ssize_t ll_direct_IO_26_seg(const struct lu_env *env, struct cl_io *io, in ll_direct_IO_26_seg()
365 struct lu_env *env; in ll_direct_IO_26()
Dllite_mmap.c98 ll_fault_io_init(struct vm_area_struct *vma, struct lu_env **env_ret, in ll_fault_io_init()
106 struct lu_env *env; in ll_fault_io_init()
172 struct lu_env *env; in ll_page_mkwrite0()
295 struct lu_env *env; in ll_fault0()
Dllite_internal.h726 int ll_readahead(const struct lu_env *env, struct cl_io *io,
777 int ll_merge_lvb(const struct lu_env *env, struct inode *inode);
936 struct lu_env *lcc_env;
946 static inline struct vvp_thread_info *vvp_env_info(const struct lu_env *env) in vvp_env_info()
956 static inline struct vvp_io_args *vvp_env_args(const struct lu_env *env, in vvp_env_args()
970 static inline struct vvp_session *vvp_env_session(const struct lu_env *env) in vvp_env_session()
980 static inline struct vvp_io *vvp_env_io(const struct lu_env *env) in vvp_env_io()
1366 static inline int cl_merge_lvb(const struct lu_env *env, struct inode *inode) in cl_merge_lvb()
1406 extern ssize_t ll_direct_rw_pages(const struct lu_env *env, struct cl_io *io,
Dlloop.c141 const struct lu_env *lo_env;
187 const struct lu_env *env = lo->lo_env; in do_bio_lustrebacked()
402 struct lu_env *env; in loop_thread()
Dfile.c988 int ll_merge_lvb(const struct lu_env *env, struct inode *inode) in ll_merge_lvb()
1104 ll_file_io_generic(const struct lu_env *env, struct vvp_io_args *args, in ll_file_io_generic()
1195 struct lu_env *env; in ll_file_read_iter()
1219 struct lu_env *env; in ll_file_write_iter()
1245 struct lu_env *env; in ll_file_splice_read()
1898 struct lu_env *env; in ll_hsm_release()
2584 struct lu_env *env; in cl_sync_file_range()
3296 struct lu_env *env; in ll_layout_conf()
/linux-4.1.27/drivers/staging/lustre/lustre/lclient/
Dlcommon_cl.c168 int ccc_device_init(const struct lu_env *env, struct lu_device *d, in ccc_device_init()
188 struct lu_device *ccc_device_fini(const struct lu_env *env, in ccc_device_fini()
194 struct lu_device *ccc_device_alloc(const struct lu_env *env, in ccc_device_alloc()
233 struct lu_device *ccc_device_free(const struct lu_env *env, in ccc_device_free()
249 int ccc_req_init(const struct lu_env *env, struct cl_device *dev, in ccc_req_init()
269 static struct lu_env *ccc_inode_fini_env;
322 struct lu_object *ccc_object_alloc(const struct lu_env *env, in ccc_object_alloc()
348 int ccc_object_init0(const struct lu_env *env, in ccc_object_init0()
358 int ccc_object_init(const struct lu_env *env, struct lu_object *obj, in ccc_object_init()
381 void ccc_object_free(const struct lu_env *env, struct lu_object *obj) in ccc_object_free()
[all …]
Dglimpse.c86 int cl_glimpse_lock(const struct lu_env *env, struct cl_io *io, in cl_glimpse_lock()
164 static int cl_io_get(struct inode *inode, struct lu_env **envout, in cl_io_get()
167 struct lu_env *env; in cl_io_get()
200 struct lu_env *env = NULL; in cl_glimpse_size0()
231 struct lu_env *env = NULL; in cl_local_size()
Dlcommon_misc.c130 struct lu_env *env; in cl_get_grouplock()
184 struct lu_env *env = cg->cg_env; in cl_put_grouplock()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dcl_page.c51 static void cl_page_delete0(const struct lu_env *env, struct cl_page *pg,
154 int cl_page_gang_lookup(const struct lu_env *env, struct cl_object *obj, in cl_page_gang_lookup()
248 static void cl_page_free(const struct lu_env *env, struct cl_page *page) in cl_page_free()
287 static struct cl_page *cl_page_alloc(const struct lu_env *env, in cl_page_alloc()
349 static struct cl_page *cl_page_find0(const struct lu_env *env, in cl_page_find0()
450 struct cl_page *cl_page_find(const struct lu_env *env, struct cl_object *o, in cl_page_find()
459 struct cl_page *cl_page_find_sub(const struct lu_env *env, struct cl_object *o, in cl_page_find_sub()
503 static void cl_page_state_set0(const struct lu_env *env, in cl_page_state_set0()
564 static void cl_page_state_set(const struct lu_env *env, in cl_page_state_set()
593 void cl_page_put(const struct lu_env *env, struct cl_page *page) in cl_page_put()
[all …]
Dllog_internal.h49 const struct lu_env *lpi_env;
65 static inline struct llog_thread_info *llog_info(const struct lu_env *env) in llog_info()
87 int llog_cat_id2handle(const struct lu_env *env, struct llog_handle *cathandle,
89 int class_config_dump_handler(const struct lu_env *env,
93 int llog_process_or_fork(const struct lu_env *env,
96 int llog_cat_cleanup(const struct lu_env *env, struct llog_handle *cathandle,
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()
153 static void cl_lock_lockdep_acquire(const struct lu_env *env, in cl_lock_lockdep_acquire()
160 static void cl_lock_lockdep_release(const struct lu_env *env, in cl_lock_lockdep_release()
171 static void cl_lock_lockdep_acquire(const struct lu_env *env, in cl_lock_lockdep_acquire()
174 static void cl_lock_lockdep_release(const struct lu_env *env, in cl_lock_lockdep_release()
248 static void cl_lock_free(const struct lu_env *env, struct cl_lock *lock) in cl_lock_free()
283 void cl_lock_put(const struct lu_env *env, struct cl_lock *lock) in cl_lock_put()
[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 …]
Dcl_object.c118 struct cl_object *cl_object_find(const struct lu_env *env, in cl_object_find()
135 void cl_object_put(const struct lu_env *env, struct cl_object *o) in cl_object_put()
219 int cl_object_attr_get(const struct lu_env *env, struct cl_object *obj, in cl_object_attr_get()
250 int cl_object_attr_set(const struct lu_env *env, struct cl_object *obj, in cl_object_attr_set()
283 int cl_object_glimpse(const struct lu_env *env, struct cl_object *obj, in cl_object_glimpse()
310 int cl_conf_set(const struct lu_env *env, struct cl_object *obj, in cl_conf_set()
336 void cl_object_kill(const struct lu_env *env, struct cl_object *obj) in cl_object_kill()
359 void cl_object_prune(const struct lu_env *env, struct cl_object *obj) in cl_object_prune()
525 struct lu_env ce_lu;
684 static struct lu_env *cl_env_new(__u32 ctx_tags, __u32 ses_tags, void *debug) in cl_env_new()
[all …]
Ddt_object.c80 int dt_txn_hook_start(const struct lu_env *env, in dt_txn_hook_start()
101 int dt_txn_hook_stop(const struct lu_env *env, struct thandle *txn) in dt_txn_hook_stop()
165 int dt_try_as_dir(const struct lu_env *env, struct dt_object *obj) in dt_try_as_dir()
205 int dt_lookup_dir(const struct lu_env *env, struct dt_object *dir, in dt_lookup_dir()
217 struct dt_object *dt_locate_at(const struct lu_env *env, in dt_locate_at()
240 static int dt_find_entry(const struct lu_env *env, const char *entry, void *data) in dt_find_entry()
263 int dt_path_parser(const struct lu_env *env, in dt_path_parser()
289 dt_store_resolve(const struct lu_env *env, struct dt_device *dt, in dt_store_resolve()
323 static struct dt_object *dt_reg_open(const struct lu_env *env, in dt_reg_open()
346 struct dt_object *dt_store_open(const struct lu_env *env, in dt_store_open()
[all …]
Dllog.c109 int llog_cancel_rec(const struct lu_env *env, struct llog_handle *loghandle, in llog_cancel_rec()
168 static int llog_read_header(const struct lu_env *env, in llog_read_header()
202 int llog_init_handle(const struct lu_env *env, struct llog_handle *handle, in llog_init_handle()
411 struct lu_env env; in llog_process_thread_daemonize()
430 int llog_process_or_fork(const struct lu_env *env, in llog_process_or_fork()
471 int llog_process(const struct lu_env *env, struct llog_handle *loghandle, in llog_process()
478 int llog_reverse_process(const struct lu_env *env, in llog_reverse_process()
602 int llog_declare_create(const struct lu_env *env, in llog_declare_create()
624 int llog_create(const struct lu_env *env, struct llog_handle *handle, in llog_create()
646 int llog_declare_write_rec(const struct lu_env *env, in llog_declare_write_rec()
[all …]
Dllog_cat.c61 static int llog_cat_new_log(const struct lu_env *env, in llog_cat_new_log()
152 int llog_cat_id2handle(const struct lu_env *env, struct llog_handle *cathandle, in llog_cat_id2handle()
213 int llog_cat_close(const struct lu_env *env, struct llog_handle *cathandle) in llog_cat_close()
323 int llog_cat_add_rec(const struct lu_env *env, struct llog_handle *cathandle, in llog_cat_add_rec()
372 int llog_cat_declare_add_rec(const struct lu_env *env, in llog_cat_declare_add_rec()
435 int llog_cat_add(const struct lu_env *env, struct llog_handle *cathandle, in llog_cat_add()
486 int llog_cat_cancel_records(const struct lu_env *env, in llog_cat_cancel_records()
529 static int llog_cat_process_cb(const struct lu_env *env, in llog_cat_process_cb()
576 int llog_cat_process_or_fork(const struct lu_env *env, in llog_cat_process_or_fork()
617 int llog_cat_process(const struct lu_env *env, struct llog_handle *cat_llh, in llog_cat_process()
[all …]
Dlu_object.c61 static void lu_object_free(const struct lu_env *env, struct lu_object *o);
68 void lu_object_put(const struct lu_env *env, struct lu_object *o) in lu_object_put()
160 void lu_object_put_nocache(const struct lu_env *env, struct lu_object *o) in lu_object_put_nocache()
171 void lu_object_unhash(const struct lu_env *env, struct lu_object *o) in lu_object_unhash()
195 static struct lu_object *lu_object_alloc(const struct lu_env *env, in lu_object_alloc()
264 static void lu_object_free(const struct lu_env *env, struct lu_object *o) in lu_object_free()
310 int lu_site_purge(const struct lu_env *env, struct lu_site *s, int nr) in lu_site_purge()
440 int lu_cdebug_printer(const struct lu_env *env, in lu_cdebug_printer()
474 void lu_object_header_print(const struct lu_env *env, void *cookie, in lu_object_header_print()
491 void lu_object_print(const struct lu_env *env, void *cookie, in lu_object_print()
[all …]
Dllog_obd.c72 int __llog_ctxt_put(const struct lu_env *env, struct llog_ctxt *ctxt) in __llog_ctxt_put()
108 int llog_cleanup(const struct lu_env *env, struct llog_ctxt *ctxt) in llog_cleanup()
145 int llog_setup(const struct lu_env *env, struct obd_device *obd, in llog_setup()
229 int llog_cancel(const struct lu_env *env, struct llog_ctxt *ctxt, in llog_cancel()
Dcl_internal.h119 struct cl_thread_info *cl_env_info(const struct lu_env *env);
Dobd_config.c1386 int class_config_llog_handler(const struct lu_env *env, in class_config_llog_handler()
1577 int class_config_parse_llog(const struct lu_env *env, struct llog_ctxt *ctxt, in class_config_parse_llog()
1667 int class_config_dump_handler(const struct lu_env *env, in class_config_dump_handler()
1690 int class_config_dump_llog(const struct lu_env *env, struct llog_ctxt *ctxt, in class_config_dump_llog()
/linux-4.1.27/drivers/staging/lustre/lustre/obdecho/
Decho_client.c96 static int echo_client_setup(const struct lu_env *env,
146 static inline struct echo_thread_info *echo_env_info(const struct lu_env *env) in echo_env_info()
172 static struct echo_thread_info *echo_env_info(const struct lu_env *env);
227 static struct page *echo_page_vmpage(const struct lu_env *env, in echo_page_vmpage()
233 static int echo_page_own(const struct lu_env *env, in echo_page_own()
246 static void echo_page_disown(const struct lu_env *env, in echo_page_disown()
256 static void echo_page_discard(const struct lu_env *env, in echo_page_discard()
263 static int echo_page_is_vmlocked(const struct lu_env *env, in echo_page_is_vmlocked()
271 static void echo_page_completion(const struct lu_env *env, in echo_page_completion()
278 static void echo_page_fini(const struct lu_env *env, in echo_page_fini()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dllog_client.c79 static int llog_client_open(const struct lu_env *env, in llog_client_open()
145 static int llog_client_destroy(const struct lu_env *env, in llog_client_destroy()
180 static int llog_client_next_block(const struct lu_env *env, in llog_client_next_block()
239 static int llog_client_prev_block(const struct lu_env *env, in llog_client_prev_block()
292 static int llog_client_read_header(const struct lu_env *env, in llog_client_read_header()
349 static int llog_client_close(const struct lu_env *env, in llog_client_close()
Dptlrpcd.c263 static int ptlrpcd_check(struct lu_env *env, struct ptlrpcd_ctl *pc) in ptlrpcd_check()
376 struct lu_env env = { .le_ses = NULL }; in ptlrpcd()
Dimport.c107 static int ptlrpc_connect_interpret(const struct lu_env *env,
788 static int ptlrpc_connect_interpret(const struct lu_env *env, in ptlrpc_connect_interpret()
1216 static int completed_replay_interpret(const struct lu_env *env, in completed_replay_interpret()
Dclient.c1510 int ptlrpc_check_set(const struct lu_env *env, struct ptlrpc_request_set *set) in ptlrpc_check_set()
2706 static int ptlrpc_replay_interpret(const struct lu_env *env, in ptlrpc_replay_interpret()
3026 int (*cb)(const struct lu_env *, void *);
3045 static int work_interpreter(const struct lu_env *env, in work_interpreter()
3076 int (*cb)(const struct lu_env *, void *), void *cbdata) in ptlrpcd_alloc_work() argument
Dservice.c2264 struct lu_env *env; in ptlrpc_main()
/linux-4.1.27/drivers/staging/lustre/lustre/fid/
Dfid_request.c145 const struct lu_env *env) in seq_client_alloc_super()
169 static int seq_client_alloc_meta(const struct lu_env *env, in seq_client_alloc_meta()
191 static int seq_client_alloc_seq(const struct lu_env *env, in seq_client_alloc_seq()
253 int seq_client_get_seq(const struct lu_env *env, in seq_client_get_seq()
302 int seq_client_alloc_fid(const struct lu_env *env, in seq_client_alloc_fid()
Dfid_internal.h48 const struct lu_env *env);
/linux-4.1.27/drivers/staging/lustre/lustre/fld/
Dfld_internal.h181 int fld_write_range(const struct lu_env *env, struct dt_object *dt,
Dfld_request.c465 __u32 flags, const struct lu_env *env) in fld_client_lookup()
/linux-4.1.27/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c644 static int mgc_llog_init(const struct lu_env *env, struct obd_device *obd) in mgc_llog_init()
665 static int mgc_llog_fini(const struct lu_env *env, struct obd_device *obd) in mgc_llog_fini()
970 static int mgc_set_info_async(const struct lu_env *env, struct obd_export *exp, in mgc_set_info_async()
1047 static int mgc_get_info(const struct lu_env *env, struct obd_export *exp, in mgc_get_info()
1482 struct lu_env *env; in mgc_process_cfg_log()
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/
Dmdc_request.c1133 static int mdc_statfs(const struct lu_env *env, in mdc_statfs()
1554 static int changelog_kkuc_cb(const struct lu_env *env, struct llog_handle *llh, in changelog_kkuc_cb()
2154 static int mdc_set_info_async(const struct lu_env *env, in mdc_set_info_async()
2205 static int mdc_get_info(const struct lu_env *env, struct obd_export *exp, in mdc_get_info()
2593 static int mdc_interpret_renew_capa(const struct lu_env *env, in mdc_interpret_renew_capa()
Dmdc_locks.c1210 static int mdc_intent_getattr_async_interpret(const struct lu_env *env, in mdc_intent_getattr_async_interpret()
/linux-4.1.27/drivers/staging/lustre/lustre/lmv/
Dlmv_obd.c197 static int lmv_connect(const struct lu_env *env, in lmv_connect()
1427 static int lmv_statfs(const struct lu_env *env, struct obd_export *exp, in lmv_statfs()
2325 static int lmv_get_info(const struct lu_env *env, struct obd_export *exp, in lmv_get_info()
2390 static int lmv_set_info_async(const struct lu_env *env, struct obd_export *exp, in lmv_set_info_async()
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
Dldlm_lib.c490 int client_connect_import(const struct lu_env *env, in client_connect_import()
Dldlm_request.c2097 static int replay_lock_interpret(const struct lu_env *env, in replay_lock_interpret()