Lines Matching refs:new_op

25 	struct orangefs_kernel_op_s *new_op;  in orangefs_create()  local
35 new_op = op_alloc(ORANGEFS_VFS_OP_CREATE); in orangefs_create()
36 if (!new_op) in orangefs_create()
39 new_op->upcall.req.create.parent_refn = parent->refn; in orangefs_create()
41 fill_default_sys_attrs(new_op->upcall.req.create.attributes, in orangefs_create()
44 strncpy(new_op->upcall.req.create.d_name, in orangefs_create()
47 ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); in orangefs_create()
53 &new_op->downcall.resp.create.refn.khandle, in orangefs_create()
54 new_op->downcall.resp.create.refn.fs_id, in orangefs_create()
55 new_op, in orangefs_create()
61 ref = new_op->downcall.resp.create.refn; in orangefs_create()
92 op_release(new_op); in orangefs_create()
109 struct orangefs_kernel_op_s *new_op; in orangefs_lookup() local
127 new_op = op_alloc(ORANGEFS_VFS_OP_LOOKUP); in orangefs_lookup()
128 if (!new_op) in orangefs_lookup()
131 new_op->upcall.req.lookup.sym_follow = ORANGEFS_LOOKUP_LINK_NO_FOLLOW; in orangefs_lookup()
138 new_op->upcall.req.lookup.parent_refn = parent->refn; in orangefs_lookup()
140 strncpy(new_op->upcall.req.lookup.d_name, dentry->d_name.name, in orangefs_lookup()
146 new_op->upcall.req.lookup.d_name, in orangefs_lookup()
147 &new_op->upcall.req.lookup.parent_refn.khandle, in orangefs_lookup()
148 new_op->upcall.req.lookup.parent_refn.fs_id); in orangefs_lookup()
150 ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); in orangefs_lookup()
154 &new_op->downcall.resp.lookup.refn.khandle, in orangefs_lookup()
155 new_op->downcall.resp.lookup.refn.fs_id, in orangefs_lookup()
160 inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn); in orangefs_lookup()
168 op_release(new_op); in orangefs_lookup()
177 struct orangefs_kernel_op_s *new_op; in orangefs_unlink() local
190 new_op = op_alloc(ORANGEFS_VFS_OP_REMOVE); in orangefs_unlink()
191 if (!new_op) in orangefs_unlink()
194 new_op->upcall.req.remove.parent_refn = parent->refn; in orangefs_unlink()
195 strncpy(new_op->upcall.req.remove.d_name, dentry->d_name.name, in orangefs_unlink()
198 ret = service_operation(new_op, "orangefs_unlink", in orangefs_unlink()
206 op_release(new_op); in orangefs_unlink()
225 struct orangefs_kernel_op_s *new_op; in orangefs_symlink() local
240 new_op = op_alloc(ORANGEFS_VFS_OP_SYMLINK); in orangefs_symlink()
241 if (!new_op) in orangefs_symlink()
244 new_op->upcall.req.sym.parent_refn = parent->refn; in orangefs_symlink()
246 fill_default_sys_attrs(new_op->upcall.req.sym.attributes, in orangefs_symlink()
250 strncpy(new_op->upcall.req.sym.entry_name, in orangefs_symlink()
253 strncpy(new_op->upcall.req.sym.target, symname, ORANGEFS_NAME_MAX - 1); in orangefs_symlink()
255 ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); in orangefs_symlink()
259 &new_op->downcall.resp.sym.refn.khandle, in orangefs_symlink()
260 new_op->downcall.resp.sym.refn.fs_id, ret); in orangefs_symlink()
269 ref = new_op->downcall.resp.sym.refn; in orangefs_symlink()
304 op_release(new_op); in orangefs_symlink()
312 struct orangefs_kernel_op_s *new_op; in orangefs_mkdir() local
318 new_op = op_alloc(ORANGEFS_VFS_OP_MKDIR); in orangefs_mkdir()
319 if (!new_op) in orangefs_mkdir()
322 new_op->upcall.req.mkdir.parent_refn = parent->refn; in orangefs_mkdir()
324 fill_default_sys_attrs(new_op->upcall.req.mkdir.attributes, in orangefs_mkdir()
327 strncpy(new_op->upcall.req.mkdir.d_name, in orangefs_mkdir()
330 ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); in orangefs_mkdir()
334 &new_op->downcall.resp.mkdir.refn.khandle, in orangefs_mkdir()
335 new_op->downcall.resp.mkdir.refn.fs_id); in orangefs_mkdir()
344 ref = new_op->downcall.resp.mkdir.refn; in orangefs_mkdir()
374 op_release(new_op); in orangefs_mkdir()
385 struct orangefs_kernel_op_s *new_op; in orangefs_rename() local
401 new_op = op_alloc(ORANGEFS_VFS_OP_RENAME); in orangefs_rename()
402 if (!new_op) in orangefs_rename()
405 new_op->upcall.req.rename.old_parent_refn = ORANGEFS_I(old_dir)->refn; in orangefs_rename()
406 new_op->upcall.req.rename.new_parent_refn = ORANGEFS_I(new_dir)->refn; in orangefs_rename()
408 strncpy(new_op->upcall.req.rename.d_old_name, in orangefs_rename()
411 strncpy(new_op->upcall.req.rename.d_new_name, in orangefs_rename()
415 ret = service_operation(new_op, in orangefs_rename()
426 op_release(new_op); in orangefs_rename()