|
@@ -119,27 +119,9 @@ extern void fscache_op_work_func(struct work_struct *work);
|
|
extern void fscache_enqueue_operation(struct fscache_operation *);
|
|
extern void fscache_enqueue_operation(struct fscache_operation *);
|
|
extern void fscache_op_complete(struct fscache_operation *, bool);
|
|
extern void fscache_op_complete(struct fscache_operation *, bool);
|
|
extern void fscache_put_operation(struct fscache_operation *);
|
|
extern void fscache_put_operation(struct fscache_operation *);
|
|
-
|
|
|
|
-/**
|
|
|
|
- * fscache_operation_init - Do basic initialisation of an operation
|
|
|
|
- * @op: The operation to initialise
|
|
|
|
- * @release: The release function to assign
|
|
|
|
- *
|
|
|
|
- * Do basic initialisation of an operation. The caller must still set flags,
|
|
|
|
- * object and processor if needed.
|
|
|
|
- */
|
|
|
|
-static inline void fscache_operation_init(struct fscache_operation *op,
|
|
|
|
- fscache_operation_processor_t processor,
|
|
|
|
- fscache_operation_release_t release)
|
|
|
|
-{
|
|
|
|
- INIT_WORK(&op->work, fscache_op_work_func);
|
|
|
|
- atomic_set(&op->usage, 1);
|
|
|
|
- op->state = FSCACHE_OP_ST_INITIALISED;
|
|
|
|
- op->debug_id = atomic_inc_return(&fscache_op_debug_id);
|
|
|
|
- op->processor = processor;
|
|
|
|
- op->release = release;
|
|
|
|
- INIT_LIST_HEAD(&op->pend_link);
|
|
|
|
-}
|
|
|
|
|
|
+extern void fscache_operation_init(struct fscache_operation *,
|
|
|
|
+ fscache_operation_processor_t,
|
|
|
|
+ fscache_operation_release_t);
|
|
|
|
|
|
/*
|
|
/*
|
|
* data read operation
|
|
* data read operation
|