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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/fscache/internal.h b/fs/fscache/internal.h
index 2bf463d26080..5b49a373689b 100644
--- a/fs/fscache/internal.h
+++ b/fs/fscache/internal.h
@@ -156,6 +156,7 @@ extern atomic_t fscache_n_allocs_ok;
156extern atomic_t fscache_n_allocs_wait; 156extern atomic_t fscache_n_allocs_wait;
157extern atomic_t fscache_n_allocs_nobufs; 157extern atomic_t fscache_n_allocs_nobufs;
158extern atomic_t fscache_n_allocs_intr; 158extern atomic_t fscache_n_allocs_intr;
159extern atomic_t fscache_n_allocs_object_dead;
159extern atomic_t fscache_n_alloc_ops; 160extern atomic_t fscache_n_alloc_ops;
160extern atomic_t fscache_n_alloc_op_waits; 161extern atomic_t fscache_n_alloc_op_waits;
161 162
@@ -166,6 +167,7 @@ extern atomic_t fscache_n_retrievals_nodata;
166extern atomic_t fscache_n_retrievals_nobufs; 167extern atomic_t fscache_n_retrievals_nobufs;
167extern atomic_t fscache_n_retrievals_intr; 168extern atomic_t fscache_n_retrievals_intr;
168extern atomic_t fscache_n_retrievals_nomem; 169extern atomic_t fscache_n_retrievals_nomem;
170extern atomic_t fscache_n_retrievals_object_dead;
169extern atomic_t fscache_n_retrieval_ops; 171extern atomic_t fscache_n_retrieval_ops;
170extern atomic_t fscache_n_retrieval_op_waits; 172extern atomic_t fscache_n_retrieval_op_waits;
171 173
@@ -249,9 +251,12 @@ static inline void fscache_stat_d(atomic_t *stat)
249 atomic_dec(stat); 251 atomic_dec(stat);
250} 252}
251 253
254#define __fscache_stat(stat) (stat)
255
252extern const struct file_operations fscache_stats_fops; 256extern const struct file_operations fscache_stats_fops;
253#else 257#else
254 258
259#define __fscache_stat(stat) (NULL)
255#define fscache_stat(stat) do {} while (0) 260#define fscache_stat(stat) do {} while (0)
256#endif 261#endif
257 262