Home
last modified time | relevance | path

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

/linux-3.4.99/include/linux/
Dfscache-cache.h29 struct fscache_object;
62 struct fscache_object *fsdef; /* object for the fsdef index */
81 struct fscache_object *object; /* object to be operated upon */
207 struct fscache_object *(*alloc_object)(struct fscache_cache *cache,
213 int (*lookup_object)(struct fscache_object *object);
216 void (*lookup_complete)(struct fscache_object *object);
219 struct fscache_object *(*grab_object)(struct fscache_object *object);
222 int (*pin_object)(struct fscache_object *object);
225 void (*unpin_object)(struct fscache_object *object);
228 void (*update_object)(struct fscache_object *object);
[all …]
/linux-3.4.99/fs/fscache/
Dobject.c52 static int fscache_get_object(struct fscache_object *);
53 static void fscache_put_object(struct fscache_object *);
54 static void fscache_initialise_object(struct fscache_object *);
55 static void fscache_lookup_object(struct fscache_object *);
56 static void fscache_object_available(struct fscache_object *);
57 static void fscache_release_object(struct fscache_object *);
58 static void fscache_withdraw_object(struct fscache_object *);
59 static void fscache_enqueue_dependents(struct fscache_object *);
60 static void fscache_dequeue_object(struct fscache_object *);
66 static inline void fscache_done_parent_op(struct fscache_object *object) in fscache_done_parent_op()
[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()
57 xobj = rb_entry(parent, struct fscache_object, objlist_link); in fscache_objlist_add()
79 void fscache_object_destroy(struct fscache_object *obj) in fscache_object_destroy()
93 static struct fscache_object *fscache_objlist_lookup(loff_t *_pos) in fscache_objlist_lookup()
95 struct fscache_object *pobj, *obj = NULL, *minobj = NULL; in fscache_objlist_lookup()
106 return (struct fscache_object *)(long)++(*_pos); in fscache_objlist_lookup()
108 return (struct fscache_object *)pos; in fscache_objlist_lookup()
110 pobj = (struct fscache_object *)pos; in fscache_objlist_lookup()
113 obj = rb_entry(p, struct fscache_object, objlist_link); in fscache_objlist_lookup()
[all …]
Dinternal.h103 struct fscache_object *);
104 extern void fscache_enqueue_object(struct fscache_object *);
112 extern void fscache_objlist_add(struct fscache_object *);
120 extern int fscache_submit_exclusive_op(struct fscache_object *,
122 extern int fscache_submit_op(struct fscache_object *,
125 extern void fscache_abort_object(struct fscache_object *);
126 extern void fscache_start_operations(struct fscache_object *);
278 static inline void fscache_raise_event(struct fscache_object *object, in fscache_raise_event()
Dpage.c118 static void fscache_end_page_write(struct fscache_object *object, in fscache_end_page_write()
150 struct fscache_object *object = op->object; in fscache_attr_changed_op()
174 struct fscache_object *object; in __fscache_attr_changed()
197 struct fscache_object, cookie_link); in __fscache_attr_changed()
296 static int fscache_wait_for_retrieval_activation(struct fscache_object *object, in fscache_wait_for_retrieval_activation()
346 struct fscache_object *object; in __fscache_read_or_alloc_page()
373 struct fscache_object, cookie_link); in __fscache_read_or_alloc_page()
465 struct fscache_object *object; in __fscache_read_or_alloc_pages()
491 struct fscache_object, cookie_link); in __fscache_read_or_alloc_pages()
567 struct fscache_object *object; in __fscache_alloc_page()
[all …]
Dcookie.c28 struct fscache_object *object);
148 struct fscache_object *object; in fscache_acquire_non_index_cookie()
202 struct fscache_object, cookie_link); in fscache_acquire_non_index_cookie()
239 struct fscache_object *object; in fscache_alloc_object()
310 struct fscache_object *object) in fscache_attach_object()
312 struct fscache_object *p; in fscache_attach_object()
377 struct fscache_object *object; in __fscache_update_cookie()
414 struct fscache_object *object; in __fscache_relinquish_cookie()
450 struct fscache_object, in __fscache_relinquish_cookie()
Doperation.c64 static void fscache_run_op(struct fscache_object *object, in fscache_run_op()
80 int fscache_submit_exclusive_op(struct fscache_object *object, in fscache_submit_exclusive_op()
135 static void fscache_report_unexpected_submission(struct fscache_object *object, in fscache_report_unexpected_submission()
180 int fscache_submit_op(struct fscache_object *object, in fscache_submit_op()
245 void fscache_abort_object(struct fscache_object *object) in fscache_abort_object()
256 void fscache_start_operations(struct fscache_object *object) in fscache_start_operations()
288 struct fscache_object *object = op->object; in fscache_cancel_op()
319 struct fscache_object *object; in fscache_put_operation()
390 struct fscache_object *object; in fscache_operation_gc()
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()
331 struct fscache_object *object; in fscache_withdraw_all_objects()
337 struct fscache_object, cache_link); in fscache_withdraw_all_objects()
/linux-3.4.99/fs/cachefiles/
Dinterface.c23 static int cachefiles_attr_changed(struct fscache_object *_object);
28 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()
163 static void cachefiles_lookup_complete(struct fscache_object *_object) in cachefiles_lookup_complete()
183 struct fscache_object *cachefiles_grab_object(struct fscache_object *_object) in cachefiles_grab_object()
201 static void cachefiles_update_object(struct fscache_object *_object) in cachefiles_update_object()
245 static void cachefiles_drop_object(struct fscache_object *_object) in cachefiles_drop_object()
300 static void cachefiles_put_object(struct fscache_object *_object) in cachefiles_put_object()
377 static int cachefiles_attr_changed(struct fscache_object *_object) in cachefiles_attr_changed()
Dinternal.h30 struct fscache_object fscache; /* fscache handle */
206 extern void cachefiles_uncache_page(struct fscache_object *, struct page *);
Drdwr.c972 void cachefiles_uncache_page(struct fscache_object *_object, struct page *page) in cachefiles_uncache_page()
/linux-3.4.99/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