Lines Matching refs:new_op

23 	struct orangefs_kernel_op_s *new_op;  in flush_racache()  local
31 new_op = op_alloc(ORANGEFS_VFS_OP_RA_FLUSH); in flush_racache()
32 if (!new_op) in flush_racache()
34 new_op->upcall.req.ra_cache_flush.refn = orangefs_inode->refn; in flush_racache()
36 ret = service_operation(new_op, "orangefs_flush_racache", in flush_racache()
42 op_release(new_op); in flush_racache()
56 struct orangefs_kernel_op_s *new_op = NULL; in wait_for_direct_io() local
63 new_op = op_alloc(ORANGEFS_VFS_OP_FILE_IO); in wait_for_direct_io()
64 if (!new_op) in wait_for_direct_io()
68 new_op->upcall.req.io.readahead_size = readahead_size; in wait_for_direct_io()
69 new_op->upcall.req.io.io_type = type; in wait_for_direct_io()
70 new_op->upcall.req.io.refn = orangefs_inode->refn; in wait_for_direct_io()
86 new_op, in wait_for_direct_io()
89 new_op->uses_shared_memory = 1; in wait_for_direct_io()
90 new_op->upcall.req.io.buf_index = buffer_index; in wait_for_direct_io()
91 new_op->upcall.req.io.count = total_size; in wait_for_direct_io()
92 new_op->upcall.req.io.offset = *offset; in wait_for_direct_io()
94 new_op->upcall.uid = from_kuid(&init_user_ns, wr->uid); in wait_for_direct_io()
95 new_op->upcall.gid = from_kgid(&init_user_ns, wr->gid); in wait_for_direct_io()
126 new_op->upcall.uid = 0; in wait_for_direct_io()
128 new_op->upcall.uid = 0; in wait_for_direct_io()
153 llu(new_op->tag)); in wait_for_direct_io()
156 ret = service_operation(new_op, in wait_for_direct_io()
171 if (ret == -EAGAIN && op_state_purged(new_op)) { in wait_for_direct_io()
194 switch (new_op->op_state - OP_VFS_STATE_GIVEN_UP) { in wait_for_direct_io()
220 new_op->op_state); in wait_for_direct_io()
227 new_op->op_state, in wait_for_direct_io()
228 new_op); in wait_for_direct_io()
236 if (orangefs_cancel_op_in_progress(new_op)) in wait_for_direct_io()
245 if (type == ORANGEFS_IO_READ && new_op->downcall.resp.io.amt_complete) { in wait_for_direct_io()
252 copy_amount = new_op->downcall.resp.io.amt_complete; in wait_for_direct_io()
267 (int)new_op->downcall.resp.io.amt_complete); in wait_for_direct_io()
269 ret = new_op->downcall.resp.io.amt_complete; in wait_for_direct_io()
278 op_release(new_op); in wait_for_direct_io()
464 struct orangefs_kernel_op_s *new_op = NULL; in orangefs_fsync() local
471 new_op = op_alloc(ORANGEFS_VFS_OP_FSYNC); in orangefs_fsync()
472 if (!new_op) in orangefs_fsync()
474 new_op->upcall.req.fsync.refn = orangefs_inode->refn; in orangefs_fsync()
476 ret = service_operation(new_op, in orangefs_fsync()
484 op_release(new_op); in orangefs_fsync()