~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/linux/fscache-cache.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
 
101
101
        /* operation releaser */
102
102
        fscache_operation_release_t release;
103
 
 
104
 
#ifdef CONFIG_WORKQUEUE_DEBUGFS
105
 
        struct work_struct put_work;    /* work to delay operation put */
106
 
        const char *name;               /* operation name */
107
 
        const char *state;              /* operation state */
108
 
#define fscache_set_op_name(OP, N)      do { (OP)->name  = (N); } while(0)
109
 
#define fscache_set_op_state(OP, S)     do { (OP)->state = (S); } while(0)
110
 
#else
111
 
#define fscache_set_op_name(OP, N)      do { } while(0)
112
 
#define fscache_set_op_state(OP, S)     do { } while(0)
113
 
#endif
114
103
};
115
104
 
116
105
extern atomic_t fscache_op_debug_id;
137
126
        op->processor = processor;
138
127
        op->release = release;
139
128
        INIT_LIST_HEAD(&op->pend_link);
140
 
        fscache_set_op_state(op, "Init");
141
129
}
142
130
 
143
131
/*
236
224
        /* unpin an object in the cache */
237
225
        void (*unpin_object)(struct fscache_object *object);
238
226
 
239
 
        /* store the updated auxilliary data on an object */
 
227
        /* store the updated auxiliary data on an object */
240
228
        void (*update_object)(struct fscache_object *object);
241
229
 
242
230
        /* discard the resources pinned by an object and effect retirement if