Home
last modified time | relevance | path

Searched refs:new_op (Results 1 – 11 of 11) sorted by relevance

/linux-4.19.296/fs/orangefs/
Dxattr.c67 struct orangefs_kernel_op_s *new_op = NULL; in orangefs_inode_getxattr() local
96 new_op = op_alloc(ORANGEFS_VFS_OP_GETXATTR); in orangefs_inode_getxattr()
97 if (!new_op) in orangefs_inode_getxattr()
100 new_op->upcall.req.getxattr.refn = orangefs_inode->refn; in orangefs_inode_getxattr()
101 strcpy(new_op->upcall.req.getxattr.key, name); in orangefs_inode_getxattr()
108 new_op->upcall.req.getxattr.key_sz = strlen(name) + 1; in orangefs_inode_getxattr()
110 ret = service_operation(new_op, "orangefs_inode_getxattr", in orangefs_inode_getxattr()
119 (char *)new_op->upcall.req.getxattr.key); in orangefs_inode_getxattr()
127 length = new_op->downcall.resp.getxattr.val_sz; in orangefs_inode_getxattr()
145 memcpy(buffer, new_op->downcall.resp.getxattr.val, length); in orangefs_inode_getxattr()
[all …]
Dnamei.c24 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()
[all …]
Dorangefs-cache.c46 char *get_opname_string(struct orangefs_kernel_op_s *new_op) in get_opname_string() argument
48 if (new_op) { in get_opname_string()
49 __s32 type = new_op->upcall.type; in get_opname_string()
118 struct orangefs_kernel_op_s *new_op = NULL; in op_alloc() local
120 new_op = kmem_cache_zalloc(op_cache, GFP_KERNEL); in op_alloc()
121 if (new_op) { in op_alloc()
122 INIT_LIST_HEAD(&new_op->list); in op_alloc()
123 spin_lock_init(&new_op->lock); in op_alloc()
124 init_completion(&new_op->waitq); in op_alloc()
126 new_op->upcall.type = ORANGEFS_VFS_OP_INVALID; in op_alloc()
[all …]
Dsuper.c152 struct orangefs_kernel_op_s *new_op = NULL; in orangefs_statfs() local
164 new_op = op_alloc(ORANGEFS_VFS_OP_STATFS); in orangefs_statfs()
165 if (!new_op) in orangefs_statfs()
167 new_op->upcall.req.statfs.fs_id = ORANGEFS_SB(sb)->fs_id; in orangefs_statfs()
172 ret = service_operation(new_op, "orangefs_statfs", flags); in orangefs_statfs()
174 if (new_op->downcall.status < 0) in orangefs_statfs()
182 (long)new_op->downcall.resp.statfs.blocks_avail, in orangefs_statfs()
183 (long)new_op->downcall.resp.statfs.blocks_total, in orangefs_statfs()
184 (long)new_op->downcall.resp.statfs.block_size, in orangefs_statfs()
185 (long)new_op->downcall.resp.statfs.files_total, in orangefs_statfs()
[all …]
Dorangefs-sysfs.c305 struct orangefs_kernel_op_s *new_op = NULL; in sysfs_service_op_show() local
319 new_op = op_alloc(op_alloc_type); in sysfs_service_op_show()
320 if (!new_op) in sysfs_service_op_show()
333 new_op->upcall.req.param.type = ORANGEFS_PARAM_REQUEST_GET; in sysfs_service_op_show()
347 new_op->upcall.req.param.op = in sysfs_service_op_show()
351 new_op->upcall.req.param.op = in sysfs_service_op_show()
355 new_op->upcall.req.param.op = in sysfs_service_op_show()
360 new_op->upcall.req.param.op = in sysfs_service_op_show()
365 new_op->upcall.req.param.op = in sysfs_service_op_show()
370 new_op->upcall.req.param.op = in sysfs_service_op_show()
[all …]
Dfile.c21 struct orangefs_kernel_op_s *new_op; in flush_racache() local
29 new_op = op_alloc(ORANGEFS_VFS_OP_RA_FLUSH); in flush_racache()
30 if (!new_op) in flush_racache()
32 new_op->upcall.req.ra_cache_flush.refn = orangefs_inode->refn; in flush_racache()
34 ret = service_operation(new_op, "orangefs_flush_racache", in flush_racache()
40 op_release(new_op); in flush_racache()
53 struct orangefs_kernel_op_s *new_op = NULL; in wait_for_direct_io() local
57 new_op = op_alloc(ORANGEFS_VFS_OP_FILE_IO); in wait_for_direct_io()
58 if (!new_op) in wait_for_direct_io()
62 new_op->upcall.req.io.readahead_size = readahead_size; in wait_for_direct_io()
[all …]
Dorangefs-utils.c279 struct orangefs_kernel_op_s *new_op; in orangefs_inode_getattr() local
297 new_op = op_alloc(ORANGEFS_VFS_OP_GETATTR); in orangefs_inode_getattr()
298 if (!new_op) in orangefs_inode_getattr()
300 new_op->upcall.req.getattr.refn = orangefs_inode->refn; in orangefs_inode_getattr()
306 new_op->upcall.req.getattr.mask = ORANGEFS_ATTR_SYS_ALL_NOHINT; in orangefs_inode_getattr()
308 new_op->upcall.req.getattr.mask = in orangefs_inode_getattr()
311 ret = service_operation(new_op, __func__, in orangefs_inode_getattr()
318 &new_op->downcall.resp.getattr.attributes, in orangefs_inode_getattr()
319 new_op->downcall.resp.getattr.link_target); in orangefs_inode_getattr()
326 type = orangefs_inode_type(new_op-> in orangefs_inode_getattr()
[all …]
Ddcache.c22 struct orangefs_kernel_op_s *new_op; in orangefs_revalidate_lookup() local
28 new_op = op_alloc(ORANGEFS_VFS_OP_LOOKUP); in orangefs_revalidate_lookup()
29 if (!new_op) { in orangefs_revalidate_lookup()
34 new_op->upcall.req.lookup.sym_follow = ORANGEFS_LOOKUP_LINK_NO_FOLLOW; in orangefs_revalidate_lookup()
35 new_op->upcall.req.lookup.parent_refn = parent->refn; in orangefs_revalidate_lookup()
36 strncpy(new_op->upcall.req.lookup.d_name, in orangefs_revalidate_lookup()
47 err = service_operation(new_op, "orangefs_lookup", in orangefs_revalidate_lookup()
58 if (!match_handle(new_op->downcall.resp.lookup.refn.khandle, in orangefs_revalidate_lookup()
71 if (new_op->downcall.status != 0) in orangefs_revalidate_lookup()
82 op_release(new_op); in orangefs_revalidate_lookup()
Dinode.c152 struct orangefs_kernel_op_s *new_op; in orangefs_setattr_size() local
177 new_op = op_alloc(ORANGEFS_VFS_OP_TRUNCATE); in orangefs_setattr_size()
178 if (!new_op) in orangefs_setattr_size()
181 new_op->upcall.req.truncate.refn = orangefs_inode->refn; in orangefs_setattr_size()
182 new_op->upcall.req.truncate.size = (__s64) iattr->ia_size; in orangefs_setattr_size()
184 ret = service_operation(new_op, in orangefs_setattr_size()
194 op_release(new_op); in orangefs_setattr_size()
Dorangefs-debugfs.c439 struct orangefs_kernel_op_s *new_op = NULL; in orangefs_debug_write() local
500 new_op = op_alloc(ORANGEFS_VFS_OP_PARAM); in orangefs_debug_write()
501 if (!new_op) { in orangefs_debug_write()
506 new_op->upcall.req.param.op = in orangefs_debug_write()
508 new_op->upcall.req.param.type = ORANGEFS_PARAM_REQUEST_SET; in orangefs_debug_write()
509 memset(new_op->upcall.req.param.s_value, in orangefs_debug_write()
512 sprintf(new_op->upcall.req.param.s_value, in orangefs_debug_write()
518 rc = service_operation(new_op, in orangefs_debug_write()
528 op_release(new_op); in orangefs_debug_write()
Dorangefs-kernel.h298 char *get_opname_string(struct orangefs_kernel_op_s *new_op);