Lines Matching defs:op
237 static void afs_fetch_data_notify(struct afs_operation *op)
239 struct afs_read *req = op->fetch.req;
241 int error = afs_op_error(op);
253 static void afs_fetch_data_success(struct afs_operation *op)
255 struct afs_vnode *vnode = op->file[0].vnode;
257 _enter("op=%08x", op->debug_id);
258 afs_vnode_commit_status(op, &op->file[0]);
260 atomic_long_add(op->fetch.req->actual_len, &op->net->n_fetch_bytes);
261 afs_fetch_data_notify(op);
264 static void afs_fetch_data_put(struct afs_operation *op)
266 op->fetch.req->error = afs_op_error(op);
267 afs_put_read(op->fetch.req);
284 struct afs_operation *op;
293 op = afs_alloc_operation(req->key, vnode->volume);
294 if (IS_ERR(op)) {
296 netfs_subreq_terminated(req->subreq, PTR_ERR(op), false);
297 return PTR_ERR(op);
300 afs_op_set_vnode(op, 0, vnode);
302 op->fetch.req = afs_get_read(req);
303 op->ops = &afs_fetch_data_operation;
304 return afs_do_sync_operation(op);