Home
last modified time | relevance | path

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

/linux-4.1.27/include/linux/
Dfscache-cache.h29 struct fscache_object;
62 struct fscache_object *fsdef; /* object for the fsdef index */
91 struct fscache_object *object; /* object to be operated upon */
234 struct fscache_object *(*alloc_object)(struct fscache_cache *cache,
240 int (*lookup_object)(struct fscache_object *object);
243 void (*lookup_complete)(struct fscache_object *object);
246 struct fscache_object *(*grab_object)(struct fscache_object *object);
249 int (*pin_object)(struct fscache_object *object);
252 void (*unpin_object)(struct fscache_object *object);
259 void (*update_object)(struct fscache_object *object);
[all …]
/linux-4.1.27/fs/fscache/
Dobject.c21 static const struct fscache_state *fscache_abort_initialisation(struct fscache_object *, int);
22 static const struct fscache_state *fscache_kill_dependents(struct fscache_object *, int);
23 static const struct fscache_state *fscache_drop_object(struct fscache_object *, int);
24 static const struct fscache_state *fscache_initialise_object(struct fscache_object *, int);
25 static const struct fscache_state *fscache_invalidate_object(struct fscache_object *, int);
26 static const struct fscache_state *fscache_jumpstart_dependents(struct fscache_object *, int);
27 static const struct fscache_state *fscache_kill_object(struct fscache_object *, int);
28 static const struct fscache_state *fscache_lookup_failure(struct fscache_object *, int);
29 static const struct fscache_state *fscache_look_up_object(struct fscache_object *, int);
30 static const struct fscache_state *fscache_object_available(struct fscache_object *, int);
[all …]
Dobject-list.c48 void fscache_objlist_add(struct fscache_object *obj) in fscache_objlist_add()
50 struct fscache_object *xobj; in fscache_objlist_add()
59 xobj = rb_entry(parent, struct fscache_object, objlist_link); in fscache_objlist_add()
78 void fscache_objlist_remove(struct fscache_object *obj) in fscache_objlist_remove()
94 static struct fscache_object *fscache_objlist_lookup(loff_t *_pos) in fscache_objlist_lookup()
96 struct fscache_object *pobj, *obj = NULL, *minobj = NULL; in fscache_objlist_lookup()
107 return (struct fscache_object *)(long)++(*_pos); in fscache_objlist_lookup()
109 return (struct fscache_object *)pos; in fscache_objlist_lookup()
111 pobj = (struct fscache_object *)pos; in fscache_objlist_lookup()
114 obj = rb_entry(p, struct fscache_object, objlist_link); in fscache_objlist_lookup()
[all …]
Dinternal.h105 extern void fscache_enqueue_object(struct fscache_object *);
113 extern void fscache_objlist_add(struct fscache_object *);
114 extern void fscache_objlist_remove(struct fscache_object *);
123 extern int fscache_submit_exclusive_op(struct fscache_object *,
125 extern int fscache_submit_op(struct fscache_object *,
129 extern void fscache_cancel_all_ops(struct fscache_object *);
130 extern void fscache_abort_object(struct fscache_object *);
131 extern void fscache_start_operations(struct fscache_object *);
138 extern int fscache_wait_for_operation_activation(struct fscache_object *,
299 static inline void fscache_raise_event(struct fscache_object *object, in fscache_raise_event()
Dcookie.c28 struct fscache_object *object);
193 struct fscache_object *object; in fscache_acquire_non_index_cookie()
244 struct fscache_object, cookie_link); in fscache_acquire_non_index_cookie()
281 struct fscache_object *object; in fscache_alloc_object()
351 struct fscache_object *object) in fscache_attach_object()
353 struct fscache_object *p; in fscache_attach_object()
417 struct fscache_object *object; in __fscache_invalidate()
444 struct fscache_object, in __fscache_invalidate()
477 struct fscache_object *object; in __fscache_update_cookie()
513 struct fscache_object *object; in __fscache_disable_cookie()
[all …]
Doperation.c64 static void fscache_run_op(struct fscache_object *object, in fscache_run_op()
83 int fscache_submit_exclusive_op(struct fscache_object *object, in fscache_submit_exclusive_op()
144 static void fscache_report_unexpected_submission(struct fscache_object *object, in fscache_report_unexpected_submission()
186 int fscache_submit_op(struct fscache_object *object, in fscache_submit_op()
254 void fscache_abort_object(struct fscache_object *object) in fscache_abort_object()
265 void fscache_start_operations(struct fscache_object *object) in fscache_start_operations()
298 struct fscache_object *object = op->object; in fscache_cancel_op()
333 void fscache_cancel_all_ops(struct fscache_object *object) in fscache_cancel_all_ops()
367 struct fscache_object *object = op->object; in fscache_op_complete()
400 struct fscache_object *object; in fscache_put_operation()
[all …]
Dpage.c143 static void fscache_end_page_write(struct fscache_object *object, in fscache_end_page_write()
175 struct fscache_object *object = op->object; in fscache_attr_changed_op()
200 struct fscache_object *object; in __fscache_attr_changed()
227 struct fscache_object, cookie_link); in __fscache_attr_changed()
346 int fscache_wait_for_operation_activation(struct fscache_object *object, in fscache_wait_for_operation_activation()
406 struct fscache_object *object; in __fscache_read_or_alloc_page()
442 struct fscache_object, cookie_link); in __fscache_read_or_alloc_page()
541 struct fscache_object *object; in __fscache_read_or_alloc_pages()
575 struct fscache_object, cookie_link); in __fscache_read_or_alloc_pages()
658 struct fscache_object *object; in __fscache_alloc_page()
[all …]
Dcache.c98 struct fscache_object *object; in fscache_select_cache_for_object()
115 struct fscache_object, cookie_link); in fscache_select_cache_for_object()
218 struct fscache_object *ifsdef, in fscache_add_cache()
332 struct fscache_object *object; in fscache_withdraw_all_objects()
339 struct fscache_object, cache_link); in fscache_withdraw_all_objects()
/linux-4.1.27/fs/cachefiles/
Dinterface.c21 static int cachefiles_attr_changed(struct fscache_object *_object);
26 static struct fscache_object *cachefiles_alloc_object( in cachefiles_alloc_object()
117 static int cachefiles_lookup_object(struct fscache_object *_object) in cachefiles_lookup_object()
160 static void cachefiles_lookup_complete(struct fscache_object *_object) in cachefiles_lookup_complete()
180 struct fscache_object *cachefiles_grab_object(struct fscache_object *_object) in cachefiles_grab_object()
198 static void cachefiles_update_object(struct fscache_object *_object) in cachefiles_update_object()
251 static void cachefiles_drop_object(struct fscache_object *_object) in cachefiles_drop_object()
313 static void cachefiles_put_object(struct fscache_object *_object) in cachefiles_put_object()
415 static int cachefiles_attr_changed(struct fscache_object *_object) in cachefiles_attr_changed()
Dinternal.h39 struct fscache_object fscache; /* fscache handle */
215 extern void cachefiles_uncache_page(struct fscache_object *, struct page *);
Drdwr.c955 void cachefiles_uncache_page(struct fscache_object *_object, struct page *page) in cachefiles_uncache_page()
/linux-4.1.27/Documentation/filesystems/caching/
Dbackend-api.txt42 struct fscache_object *fsdef,
126 struct fscache_object {
149 in state FSCACHE_OBJECT_RECYCLING. The fscache_object struct should be
157 struct fscache_object *object;
234 struct fscache_object *(*alloc_object)(struct fscache_cache *cache,
249 void (*lookup_object)(struct fscache_object *object)
268 void (*lookup_complete)(struct fscache_object *object)
276 struct fscache_object *(*grab_object)(struct fscache_object *object)
285 void (*lock_object)(struct fscache_object *object)
286 void (*unlock_object)(struct fscache_object *object)
[all …]
Doperations.txt148 int fscache_submit_op(struct fscache_object *object,
151 int fscache_submit_exclusive_op(struct fscache_object *object,
Dobject.txt31 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