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()
61 op_release(new_op); in orangefs_create()
111 struct orangefs_kernel_op_s *new_op; in orangefs_lookup() local
129 new_op = op_alloc(ORANGEFS_VFS_OP_LOOKUP); in orangefs_lookup()
130 if (!new_op) in orangefs_lookup()
133 new_op->upcall.req.lookup.sym_follow = ORANGEFS_LOOKUP_LINK_NO_FOLLOW; in orangefs_lookup()
140 new_op->upcall.req.lookup.parent_refn = parent->refn; in orangefs_lookup()
142 strncpy(new_op->upcall.req.lookup.d_name, dentry->d_name.name, in orangefs_lookup()
148 new_op->upcall.req.lookup.d_name, in orangefs_lookup()
149 &new_op->upcall.req.lookup.parent_refn.khandle, in orangefs_lookup()
150 new_op->upcall.req.lookup.parent_refn.fs_id); in orangefs_lookup()
152 ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); in orangefs_lookup()
156 &new_op->downcall.resp.lookup.refn.khandle, in orangefs_lookup()
157 new_op->downcall.resp.lookup.refn.fs_id, in orangefs_lookup()
162 inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn); in orangefs_lookup()
170 op_release(new_op); in orangefs_lookup()
179 struct orangefs_kernel_op_s *new_op; in orangefs_unlink() local
192 new_op = op_alloc(ORANGEFS_VFS_OP_REMOVE); in orangefs_unlink()
193 if (!new_op) in orangefs_unlink()
196 new_op->upcall.req.remove.parent_refn = parent->refn; in orangefs_unlink()
197 strncpy(new_op->upcall.req.remove.d_name, dentry->d_name.name, in orangefs_unlink()
200 ret = service_operation(new_op, "orangefs_unlink", in orangefs_unlink()
208 op_release(new_op); in orangefs_unlink()
227 struct orangefs_kernel_op_s *new_op; in orangefs_symlink() local
242 new_op = op_alloc(ORANGEFS_VFS_OP_SYMLINK); in orangefs_symlink()
243 if (!new_op) in orangefs_symlink()
246 new_op->upcall.req.sym.parent_refn = parent->refn; in orangefs_symlink()
248 fill_default_sys_attrs(new_op->upcall.req.sym.attributes, in orangefs_symlink()
252 strncpy(new_op->upcall.req.sym.entry_name, in orangefs_symlink()
255 strncpy(new_op->upcall.req.sym.target, symname, ORANGEFS_NAME_MAX - 1); in orangefs_symlink()
257 ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); in orangefs_symlink()
261 &new_op->downcall.resp.sym.refn.khandle, in orangefs_symlink()
262 new_op->downcall.resp.sym.refn.fs_id, ret); in orangefs_symlink()
271 ref = new_op->downcall.resp.sym.refn; in orangefs_symlink()
272 op_release(new_op); in orangefs_symlink()
316 struct orangefs_kernel_op_s *new_op; in orangefs_mkdir() local
322 new_op = op_alloc(ORANGEFS_VFS_OP_MKDIR); in orangefs_mkdir()
323 if (!new_op) in orangefs_mkdir()
326 new_op->upcall.req.mkdir.parent_refn = parent->refn; in orangefs_mkdir()
328 fill_default_sys_attrs(new_op->upcall.req.mkdir.attributes, in orangefs_mkdir()
331 strncpy(new_op->upcall.req.mkdir.d_name, in orangefs_mkdir()
334 ret = service_operation(new_op, __func__, get_interruptible_flag(dir)); in orangefs_mkdir()
338 &new_op->downcall.resp.mkdir.refn.khandle, in orangefs_mkdir()
339 new_op->downcall.resp.mkdir.refn.fs_id); in orangefs_mkdir()
348 ref = new_op->downcall.resp.mkdir.refn; in orangefs_mkdir()
349 op_release(new_op); in orangefs_mkdir()
391 struct orangefs_kernel_op_s *new_op; in orangefs_rename() local
403 new_op = op_alloc(ORANGEFS_VFS_OP_RENAME); in orangefs_rename()
404 if (!new_op) in orangefs_rename()
407 new_op->upcall.req.rename.old_parent_refn = ORANGEFS_I(old_dir)->refn; in orangefs_rename()
408 new_op->upcall.req.rename.new_parent_refn = ORANGEFS_I(new_dir)->refn; in orangefs_rename()
410 strncpy(new_op->upcall.req.rename.d_old_name, in orangefs_rename()
413 strncpy(new_op->upcall.req.rename.d_new_name, in orangefs_rename()
417 ret = service_operation(new_op, in orangefs_rename()
428 op_release(new_op); in orangefs_rename()