Lines Matching refs:object
92 struct fscache_object *object; /* object to be operated upon */ member
228 int (*lookup_object)(struct fscache_object *object);
231 void (*lookup_complete)(struct fscache_object *object);
234 struct fscache_object *(*grab_object)(struct fscache_object *object);
237 int (*pin_object)(struct fscache_object *object);
240 void (*unpin_object)(struct fscache_object *object);
247 void (*update_object)(struct fscache_object *object);
254 void (*drop_object)(struct fscache_object *object);
257 void (*put_object)(struct fscache_object *object);
264 int (*attr_changed)(struct fscache_object *object);
267 int (*reserve_space)(struct fscache_object *object, loff_t i_size);
292 void (*uncache_page)(struct fscache_object *object,
328 const struct fscache_state *(*work)(struct fscache_object *object,
384 extern void fscache_object_lookup_negative(struct fscache_object *object);
385 extern void fscache_obtained_object(struct fscache_object *object);
387 static inline bool fscache_object_is_live(struct fscache_object *object) in fscache_object_is_live() argument
389 return test_bit(FSCACHE_OBJECT_IS_LIVE, &object->flags); in fscache_object_is_live()
392 static inline bool fscache_object_is_dying(struct fscache_object *object) in fscache_object_is_dying() argument
394 return !fscache_object_is_live(object); in fscache_object_is_dying()
397 static inline bool fscache_object_is_available(struct fscache_object *object) in fscache_object_is_available() argument
399 return test_bit(FSCACHE_OBJECT_IS_AVAILABLE, &object->flags); in fscache_object_is_available()
402 static inline bool fscache_cache_is_broken(struct fscache_object *object) in fscache_cache_is_broken() argument
404 return test_bit(FSCACHE_IOERROR, &object->cache->flags); in fscache_cache_is_broken()
407 static inline bool fscache_object_is_active(struct fscache_object *object) in fscache_object_is_active() argument
409 return fscache_object_is_available(object) && in fscache_object_is_active()
410 fscache_object_is_live(object) && in fscache_object_is_active()
411 !fscache_cache_is_broken(object); in fscache_object_is_active()
433 static inline void fscache_object_lookup_error(struct fscache_object *object) in fscache_object_lookup_error() argument
435 set_bit(FSCACHE_OBJECT_EV_ERROR, &object->events); in fscache_object_lookup_error()
450 void fscache_set_store_limit(struct fscache_object *object, loff_t i_size) in fscache_set_store_limit() argument
452 object->store_limit_l = i_size; in fscache_set_store_limit()
453 object->store_limit = i_size >> PAGE_SHIFT; in fscache_set_store_limit()
455 object->store_limit++; in fscache_set_store_limit()
485 static inline bool fscache_use_cookie(struct fscache_object *object) in fscache_use_cookie() argument
487 struct fscache_cookie *cookie = object->cookie; in fscache_use_cookie()
508 static inline void fscache_unuse_cookie(struct fscache_object *object) in fscache_unuse_cookie() argument
510 struct fscache_cookie *cookie = object->cookie; in fscache_unuse_cookie()
538 extern enum fscache_checkaux fscache_check_aux(struct fscache_object *object,
542 extern void fscache_object_retrying_stale(struct fscache_object *object);
550 extern void fscache_object_mark_killed(struct fscache_object *object,