Home
last modified time | relevance | path

Searched refs:fscache_object (Results 1 – 15 of 15) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
Dfscache-cache.h25 struct fscache_object;
70 struct fscache_object *fsdef; /* object for the fsdef index */
100 struct fscache_object *object; /* object to be operated upon */
230 struct fscache_object *(*alloc_object)(struct fscache_cache *cache,
236 int (*lookup_object)(struct fscache_object *object);
239 void (*lookup_complete)(struct fscache_object *object);
242 struct fscache_object *(*grab_object)(struct fscache_object *object,
246 int (*pin_object)(struct fscache_object *object);
249 void (*unpin_object)(struct fscache_object *object);
256 void (*update_object)(struct fscache_object *object);
[all …]
/kernel/linux/linux-5.10/fs/fscache/
Dobject.c17 static const struct fscache_state *fscache_abort_initialisation(struct fscache_object *, int);
18 static const struct fscache_state *fscache_kill_dependents(struct fscache_object *, int);
19 static const struct fscache_state *fscache_drop_object(struct fscache_object *, int);
20 static const struct fscache_state *fscache_initialise_object(struct fscache_object *, int);
21 static const struct fscache_state *fscache_invalidate_object(struct fscache_object *, int);
22 static const struct fscache_state *fscache_jumpstart_dependents(struct fscache_object *, int);
23 static const struct fscache_state *fscache_kill_object(struct fscache_object *, int);
24 static const struct fscache_state *fscache_lookup_failure(struct fscache_object *, int);
25 static const struct fscache_state *fscache_look_up_object(struct fscache_object *, int);
26 static const struct fscache_state *fscache_object_available(struct fscache_object *, int);
[all …]
Dobject-list.c43 void fscache_objlist_add(struct fscache_object *obj) in fscache_objlist_add()
45 struct fscache_object *xobj; in fscache_objlist_add()
54 xobj = rb_entry(parent, struct fscache_object, objlist_link); in fscache_objlist_add()
73 void fscache_objlist_remove(struct fscache_object *obj) in fscache_objlist_remove()
89 static struct fscache_object *fscache_objlist_lookup(loff_t *_pos) in fscache_objlist_lookup()
91 struct fscache_object *pobj, *obj = NULL, *minobj = NULL; in fscache_objlist_lookup()
102 return (struct fscache_object *)(long)++(*_pos); in fscache_objlist_lookup()
104 return (struct fscache_object *)pos; in fscache_objlist_lookup()
106 pobj = (struct fscache_object *)pos; in fscache_objlist_lookup()
109 obj = rb_entry(p, struct fscache_object, objlist_link); in fscache_objlist_lookup()
[all …]
Dinternal.h110 extern void fscache_enqueue_object(struct fscache_object *);
118 extern void fscache_objlist_add(struct fscache_object *);
119 extern void fscache_objlist_remove(struct fscache_object *);
128 extern int fscache_submit_exclusive_op(struct fscache_object *,
130 extern int fscache_submit_op(struct fscache_object *,
133 extern void fscache_cancel_all_ops(struct fscache_object *);
134 extern void fscache_abort_object(struct fscache_object *);
135 extern void fscache_start_operations(struct fscache_object *);
142 extern int fscache_wait_for_operation_activation(struct fscache_object *,
308 static inline void fscache_raise_event(struct fscache_object *object, in fscache_raise_event()
Doperation.c96 static void fscache_run_op(struct fscache_object *object, in fscache_run_op()
115 static void fscache_report_unexpected_submission(struct fscache_object *object, in fscache_report_unexpected_submission()
154 int fscache_submit_exclusive_op(struct fscache_object *object, in fscache_submit_exclusive_op()
240 int fscache_submit_op(struct fscache_object *object, in fscache_submit_op()
319 void fscache_abort_object(struct fscache_object *object) in fscache_abort_object()
330 void fscache_start_operations(struct fscache_object *object) in fscache_start_operations()
363 struct fscache_object *object = op->object; in fscache_cancel_op()
419 void fscache_cancel_all_ops(struct fscache_object *object) in fscache_cancel_all_ops()
456 struct fscache_object *object = op->object; in fscache_op_complete()
495 struct fscache_object *object; in fscache_put_operation()
[all …]
Dcookie.c28 struct fscache_object *object);
46 prefix, hlist_entry(object, struct fscache_object, cookie_link)); in fscache_print_cookie()
384 struct fscache_object *object; in fscache_acquire_non_index_cookie()
431 struct fscache_object, cookie_link); in fscache_acquire_non_index_cookie()
468 struct fscache_object *object; in fscache_alloc_object()
540 struct fscache_object *object) in fscache_attach_object()
542 struct fscache_object *p; in fscache_attach_object()
606 struct fscache_object *object; in __fscache_invalidate()
630 struct fscache_object, in __fscache_invalidate()
663 struct fscache_object *object; in __fscache_update_cookie()
[all …]
Dpage.c146 static void fscache_end_page_write(struct fscache_object *object, in fscache_end_page_write()
189 struct fscache_object *object = op->object; in fscache_attr_changed_op()
216 struct fscache_object *object; in __fscache_attr_changed()
244 struct fscache_object, cookie_link); in __fscache_attr_changed()
373 int fscache_wait_for_operation_activation(struct fscache_object *object, in fscache_wait_for_operation_activation()
436 struct fscache_object *object; in __fscache_read_or_alloc_page()
473 struct fscache_object, cookie_link); in __fscache_read_or_alloc_page()
567 struct fscache_object *object; in __fscache_read_or_alloc_pages()
602 struct fscache_object, cookie_link); in __fscache_read_or_alloc_pages()
680 struct fscache_object *object; in __fscache_alloc_page()
[all …]
Dcache.c94 struct fscache_object *object; in fscache_select_cache_for_object()
111 struct fscache_object, cookie_link); in fscache_select_cache_for_object()
214 struct fscache_object *ifsdef, in fscache_add_cache()
328 struct fscache_object *object; in fscache_withdraw_all_objects()
335 struct fscache_object, cache_link); in fscache_withdraw_all_objects()
/kernel/linux/linux-5.10/fs/cachefiles/
Dinterface.c17 static int cachefiles_attr_changed(struct fscache_object *_object);
22 static struct fscache_object *cachefiles_alloc_object( in cachefiles_alloc_object()
119 static int cachefiles_lookup_object(struct fscache_object *_object) in cachefiles_lookup_object()
162 static void cachefiles_lookup_complete(struct fscache_object *_object) in cachefiles_lookup_complete()
182 struct fscache_object *cachefiles_grab_object(struct fscache_object *_object, in cachefiles_grab_object()
204 static void cachefiles_update_object(struct fscache_object *_object) in cachefiles_update_object()
261 static void cachefiles_drop_object(struct fscache_object *_object) in cachefiles_drop_object()
322 static void cachefiles_put_object(struct fscache_object *_object, in cachefiles_put_object()
430 static int cachefiles_attr_changed(struct fscache_object *_object) in cachefiles_attr_changed()
Dinternal.h36 struct fscache_object fscache; /* fscache handle */
218 extern void cachefiles_uncache_page(struct fscache_object *, struct page *);
Drdwr.c962 void cachefiles_uncache_page(struct fscache_object *_object, struct page *page) in cachefiles_uncache_page()
/kernel/linux/linux-5.10/Documentation/filesystems/caching/
Dbackend-api.rst43 struct fscache_object *fsdef,
123 struct fscache_object {
146 in state FSCACHE_OBJECT_RECYCLING. The fscache_object struct should be
154 struct fscache_object *object;
232 struct fscache_object *(*alloc_object)(struct fscache_cache *cache,
247 void (*lookup_object)(struct fscache_object *object)
266 void (*lookup_complete)(struct fscache_object *object)
274 struct fscache_object *(*grab_object)(struct fscache_object *object)
283 void (*lock_object)(struct fscache_object *object)
284 void (*unlock_object)(struct fscache_object *object)
[all …]
Doperations.rst146 int fscache_submit_op(struct fscache_object *object,
149 int fscache_submit_exclusive_op(struct fscache_object *object,
Dobject.rst32 the fscache_object struct. The cache backends allocate these upon request, and
97 machine. The state for an object is kept in the fscache_object struct, in
150 from the cache backend's representation (fscache_object) - which may be
/kernel/linux/linux-5.10/include/trace/events/
Dfscache.h329 TP_PROTO(struct fscache_object *object,
337 __field(struct fscache_object *, object )