FS-Cache: Fix lock misorder in fscache_write_op()
[safe/jmp/linux-2.6] / include / linux / fscache-cache.h
index 184cbdf..f3aa4bd 100644 (file)
@@ -310,6 +310,7 @@ struct fscache_cookie {
        atomic_t                        usage;          /* number of users of this cookie */
        atomic_t                        n_children;     /* number of children of this cookie */
        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 */