}
struct ptlrpc_request *ptlrpc_prep_req2(struct ptlrpc_client *cl,
struct ptlrpc_connection *conn,
- struct lustre_handle *handle,
- int opcode, int count, int *lengths,
+ struct lustre_handle *handle,
+ int opcode, int count, int *lengths,
char **bufs);
typedef void (*bulk_callback_t)(struct ptlrpc_bulk_desc *, void *);
}
}
+static inline void ptlrpc_bulk_addref(struct ptlrpc_bulk_desc *desc)
+{
+ atomic_inc(&desc->b_refcount);
+ CDEBUG(D_PAGE, "Set refcount of %p to %d\n", desc,
+ atomic_read(&desc->b_refcount));
+}
+
#endif