diff options
Diffstat (limited to 'fs/cachefiles/internal.h')
-rw-r--r-- | fs/cachefiles/internal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cachefiles/internal.h b/fs/cachefiles/internal.h index 9c4b737a54df..2fcde1a34b7c 100644 --- a/fs/cachefiles/internal.h +++ b/fs/cachefiles/internal.h | |||
@@ -66,6 +66,8 @@ struct cachefiles_cache { | |||
66 | struct rb_root active_nodes; /* active nodes (can't be culled) */ | 66 | struct rb_root active_nodes; /* active nodes (can't be culled) */ |
67 | rwlock_t active_lock; /* lock for active_nodes */ | 67 | rwlock_t active_lock; /* lock for active_nodes */ |
68 | atomic_t gravecounter; /* graveyard uniquifier */ | 68 | atomic_t gravecounter; /* graveyard uniquifier */ |
69 | atomic_t f_released; /* number of objects released lately */ | ||
70 | atomic_long_t b_released; /* number of blocks released lately */ | ||
69 | unsigned frun_percent; /* when to stop culling (% files) */ | 71 | unsigned frun_percent; /* when to stop culling (% files) */ |
70 | unsigned fcull_percent; /* when to start culling (% files) */ | 72 | unsigned fcull_percent; /* when to start culling (% files) */ |
71 | unsigned fstop_percent; /* when to stop allocating (% files) */ | 73 | unsigned fstop_percent; /* when to stop allocating (% files) */ |
@@ -157,6 +159,8 @@ extern char *cachefiles_cook_key(const u8 *raw, int keylen, uint8_t type); | |||
157 | /* | 159 | /* |
158 | * namei.c | 160 | * namei.c |
159 | */ | 161 | */ |
162 | extern void cachefiles_mark_object_inactive(struct cachefiles_cache *cache, | ||
163 | struct cachefiles_object *object); | ||
160 | extern int cachefiles_delete_object(struct cachefiles_cache *cache, | 164 | extern int cachefiles_delete_object(struct cachefiles_cache *cache, |
161 | struct cachefiles_object *object); | 165 | struct cachefiles_object *object); |
162 | extern int cachefiles_walk_to_object(struct cachefiles_object *parent, | 166 | extern int cachefiles_walk_to_object(struct cachefiles_object *parent, |