fscache: Use refcount_t for the cookie refcount instead of atomic_t
[linux-2.6-microblaze.git] / include / linux / fscache.h
index abc1c47..a4dab59 100644 (file)
@@ -123,15 +123,17 @@ struct fscache_netfs {
  * - indices are created on disk just-in-time
  */
 struct fscache_cookie {
-       atomic_t                        usage;          /* number of users of this cookie */
+       refcount_t                      ref;            /* number of users of this cookie */
        atomic_t                        n_children;     /* number of children of this cookie */
        atomic_t                        n_active;       /* number of active users of netfs ptrs */
+       unsigned int                    debug_id;
        spinlock_t                      lock;
        spinlock_t                      stores_lock;    /* lock on page store tree */
        struct hlist_head               backing_objects; /* object(s) backing this file/index */
        const struct fscache_cookie_def *def;           /* definition */
        struct fscache_cookie           *parent;        /* parent of this entry */
        struct hlist_bl_node            hash_link;      /* Link in hash table */
+       struct list_head                proc_link;      /* Link in proc list */
        void                            *netfs_data;    /* back pointer to netfs */
        struct radix_tree_root          stores;         /* pages to be stored on this cookie */
 #define FSCACHE_COOKIE_PENDING_TAG     0               /* pages tag: pending write to cache */