Lines Matching refs:new_op
24 struct orangefs_kernel_op_s *new_op; in orangefs_create() local
34 new_op = op_alloc(ORANGEFS_VFS_OP_CREATE); in orangefs_create()
35 if (!new_op) in orangefs_create()
38 new_op->upcall.req.create.parent_refn = parent->refn; in orangefs_create()
40 fill_default_sys_attrs(new_op->upcall.req.create.attributes, in orangefs_create()
43 strncpy(new_op->upcall.req.create.d_name, in orangefs_create()
46 ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); in orangefs_create()
52 &new_op->downcall.resp.create.refn.khandle, in orangefs_create()
53 new_op->downcall.resp.create.refn.fs_id, in orangefs_create()
54 new_op, in orangefs_create()
60 ref = new_op->downcall.resp.create.refn; in orangefs_create()
91 op_release(new_op); in orangefs_create()
108 struct orangefs_kernel_op_s *new_op; in orangefs_lookup() local
126 new_op = op_alloc(ORANGEFS_VFS_OP_LOOKUP); in orangefs_lookup()
127 if (!new_op) in orangefs_lookup()
130 new_op->upcall.req.lookup.sym_follow = ORANGEFS_LOOKUP_LINK_NO_FOLLOW; in orangefs_lookup()
137 new_op->upcall.req.lookup.parent_refn = parent->refn; in orangefs_lookup()
139 strncpy(new_op->upcall.req.lookup.d_name, dentry->d_name.name, in orangefs_lookup()
145 new_op->upcall.req.lookup.d_name, in orangefs_lookup()
146 &new_op->upcall.req.lookup.parent_refn.khandle, in orangefs_lookup()
147 new_op->upcall.req.lookup.parent_refn.fs_id); in orangefs_lookup()
149 ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); in orangefs_lookup()
153 &new_op->downcall.resp.lookup.refn.khandle, in orangefs_lookup()
154 new_op->downcall.resp.lookup.refn.fs_id, in orangefs_lookup()
159 inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn); in orangefs_lookup()
167 op_release(new_op); in orangefs_lookup()
176 struct orangefs_kernel_op_s *new_op; in orangefs_unlink() local
189 new_op = op_alloc(ORANGEFS_VFS_OP_REMOVE); in orangefs_unlink()
190 if (!new_op) in orangefs_unlink()
193 new_op->upcall.req.remove.parent_refn = parent->refn; in orangefs_unlink()
194 strncpy(new_op->upcall.req.remove.d_name, dentry->d_name.name, in orangefs_unlink()
197 ret = service_operation(new_op, "orangefs_unlink", in orangefs_unlink()
205 op_release(new_op); in orangefs_unlink()
223 struct orangefs_kernel_op_s *new_op; in orangefs_symlink() local
238 new_op = op_alloc(ORANGEFS_VFS_OP_SYMLINK); in orangefs_symlink()
239 if (!new_op) in orangefs_symlink()
242 new_op->upcall.req.sym.parent_refn = parent->refn; in orangefs_symlink()
244 fill_default_sys_attrs(new_op->upcall.req.sym.attributes, in orangefs_symlink()
248 strncpy(new_op->upcall.req.sym.entry_name, in orangefs_symlink()
251 strncpy(new_op->upcall.req.sym.target, symname, ORANGEFS_NAME_MAX - 1); in orangefs_symlink()
253 ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); in orangefs_symlink()
257 &new_op->downcall.resp.sym.refn.khandle, in orangefs_symlink()
258 new_op->downcall.resp.sym.refn.fs_id, ret); in orangefs_symlink()
267 ref = new_op->downcall.resp.sym.refn; in orangefs_symlink()
302 op_release(new_op); in orangefs_symlink()
309 struct orangefs_kernel_op_s *new_op; in orangefs_mkdir() local
315 new_op = op_alloc(ORANGEFS_VFS_OP_MKDIR); in orangefs_mkdir()
316 if (!new_op) in orangefs_mkdir()
319 new_op->upcall.req.mkdir.parent_refn = parent->refn; in orangefs_mkdir()
321 fill_default_sys_attrs(new_op->upcall.req.mkdir.attributes, in orangefs_mkdir()
324 strncpy(new_op->upcall.req.mkdir.d_name, in orangefs_mkdir()
327 ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); in orangefs_mkdir()
331 &new_op->downcall.resp.mkdir.refn.khandle, in orangefs_mkdir()
332 new_op->downcall.resp.mkdir.refn.fs_id); in orangefs_mkdir()
341 ref = new_op->downcall.resp.mkdir.refn; in orangefs_mkdir()
371 op_release(new_op); in orangefs_mkdir()
381 struct orangefs_kernel_op_s *new_op; in orangefs_rename() local
397 new_op = op_alloc(ORANGEFS_VFS_OP_RENAME); in orangefs_rename()
398 if (!new_op) in orangefs_rename()
401 new_op->upcall.req.rename.old_parent_refn = ORANGEFS_I(old_dir)->refn; in orangefs_rename()
402 new_op->upcall.req.rename.new_parent_refn = ORANGEFS_I(new_dir)->refn; in orangefs_rename()
404 strncpy(new_op->upcall.req.rename.d_old_name, in orangefs_rename()
407 strncpy(new_op->upcall.req.rename.d_new_name, in orangefs_rename()
411 ret = service_operation(new_op, in orangefs_rename()
422 op_release(new_op); in orangefs_rename()