Lines Matching refs:op
219 static void afs_fetch_data_notify(struct afs_operation *op) in afs_fetch_data_notify() argument
221 struct afs_read *req = op->fetch.req; in afs_fetch_data_notify()
223 int error = op->error; in afs_fetch_data_notify()
226 error = afs_abort_to_error(op->ac.abort_code); in afs_fetch_data_notify()
238 static void afs_fetch_data_success(struct afs_operation *op) in afs_fetch_data_success() argument
240 struct afs_vnode *vnode = op->file[0].vnode; in afs_fetch_data_success()
242 _enter("op=%08x", op->debug_id); in afs_fetch_data_success()
243 afs_vnode_commit_status(op, &op->file[0]); in afs_fetch_data_success()
245 atomic_long_add(op->fetch.req->actual_len, &op->net->n_fetch_bytes); in afs_fetch_data_success()
246 afs_fetch_data_notify(op); in afs_fetch_data_success()
249 static void afs_fetch_data_put(struct afs_operation *op) in afs_fetch_data_put() argument
251 op->fetch.req->error = op->error; in afs_fetch_data_put()
252 afs_put_read(op->fetch.req); in afs_fetch_data_put()
269 struct afs_operation *op; in afs_fetch_data() local
278 op = afs_alloc_operation(req->key, vnode->volume); in afs_fetch_data()
279 if (IS_ERR(op)) { in afs_fetch_data()
281 netfs_subreq_terminated(req->subreq, PTR_ERR(op), false); in afs_fetch_data()
282 return PTR_ERR(op); in afs_fetch_data()
285 afs_op_set_vnode(op, 0, vnode); in afs_fetch_data()
287 op->fetch.req = afs_get_read(req); in afs_fetch_data()
288 op->ops = &afs_fetch_data_operation; in afs_fetch_data()
289 return afs_do_sync_operation(op); in afs_fetch_data()