ocfs2/dlm: move lock to the tail of grant queue while doing in-place convert
[cascardo/linux.git] / fs / cachefiles / internal.h
index 9c4b737..2fcde1a 100644 (file)
@@ -66,6 +66,8 @@ struct cachefiles_cache {
        struct rb_root                  active_nodes;   /* active nodes (can't be culled) */
        rwlock_t                        active_lock;    /* lock for active_nodes */
        atomic_t                        gravecounter;   /* graveyard uniquifier */
+       atomic_t                        f_released;     /* number of objects released lately */
+       atomic_long_t                   b_released;     /* number of blocks released lately */
        unsigned                        frun_percent;   /* when to stop culling (% files) */
        unsigned                        fcull_percent;  /* when to start culling (% files) */
        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);
 /*
  * namei.c
  */
+extern void cachefiles_mark_object_inactive(struct cachefiles_cache *cache,
+                                           struct cachefiles_object *object);
 extern int cachefiles_delete_object(struct cachefiles_cache *cache,
                                    struct cachefiles_object *object);
 extern int cachefiles_walk_to_object(struct cachefiles_object *parent,