aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fscache/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fscache/internal.h')
-rw-r--r--fs/fscache/internal.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/fs/fscache/internal.h b/fs/fscache/internal.h
index ee38fef4be51..12d505bedb5c 100644
--- a/fs/fscache/internal.h
+++ b/fs/fscache/internal.h
@@ -93,14 +93,11 @@ static inline bool fscache_object_congested(void)
93 93
94extern int fscache_wait_bit(void *); 94extern int fscache_wait_bit(void *);
95extern int fscache_wait_bit_interruptible(void *); 95extern int fscache_wait_bit_interruptible(void *);
96extern int fscache_wait_atomic_t(atomic_t *);
96 97
97/* 98/*
98 * object.c 99 * object.c
99 */ 100 */
100extern const char fscache_object_states_short[FSCACHE_OBJECT__NSTATES][5];
101
102extern void fscache_withdrawing_object(struct fscache_cache *,
103 struct fscache_object *);
104extern void fscache_enqueue_object(struct fscache_object *); 101extern void fscache_enqueue_object(struct fscache_object *);
105 102
106/* 103/*
@@ -110,8 +107,10 @@ extern void fscache_enqueue_object(struct fscache_object *);
110extern const struct file_operations fscache_objlist_fops; 107extern const struct file_operations fscache_objlist_fops;
111 108
112extern void fscache_objlist_add(struct fscache_object *); 109extern void fscache_objlist_add(struct fscache_object *);
110extern void fscache_objlist_remove(struct fscache_object *);
113#else 111#else
114#define fscache_objlist_add(object) do {} while(0) 112#define fscache_objlist_add(object) do {} while(0)
113#define fscache_objlist_remove(object) do {} while(0)
115#endif 114#endif
116 115
117/* 116/*
@@ -291,6 +290,10 @@ static inline void fscache_raise_event(struct fscache_object *object,
291 unsigned event) 290 unsigned event)
292{ 291{
293 BUG_ON(event >= NR_FSCACHE_OBJECT_EVENTS); 292 BUG_ON(event >= NR_FSCACHE_OBJECT_EVENTS);
293#if 0
294 printk("*** fscache_raise_event(OBJ%d{%lx},%x)\n",
295 object->debug_id, object->event_mask, (1 << event));
296#endif
294 if (!test_and_set_bit(event, &object->events) && 297 if (!test_and_set_bit(event, &object->events) &&
295 test_bit(event, &object->event_mask)) 298 test_bit(event, &object->event_mask))
296 fscache_enqueue_object(object); 299 fscache_enqueue_object(object);