Lines Matching refs:new_op

152 	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()
186 (long)new_op->downcall.resp.statfs.files_avail); in orangefs_statfs()
190 buf->f_bsize = new_op->downcall.resp.statfs.block_size; in orangefs_statfs()
193 buf->f_blocks = (sector_t) new_op->downcall.resp.statfs.blocks_total; in orangefs_statfs()
194 buf->f_bfree = (sector_t) new_op->downcall.resp.statfs.blocks_avail; in orangefs_statfs()
195 buf->f_bavail = (sector_t) new_op->downcall.resp.statfs.blocks_avail; in orangefs_statfs()
196 buf->f_files = (sector_t) new_op->downcall.resp.statfs.files_total; in orangefs_statfs()
197 buf->f_ffree = (sector_t) new_op->downcall.resp.statfs.files_avail; in orangefs_statfs()
201 op_release(new_op); in orangefs_statfs()
233 struct orangefs_kernel_op_s *new_op; in orangefs_remount() local
238 new_op = op_alloc(ORANGEFS_VFS_OP_FS_MOUNT); in orangefs_remount()
239 if (!new_op) in orangefs_remount()
241 strncpy(new_op->upcall.req.fs_mount.orangefs_config_server, in orangefs_remount()
247 new_op->upcall.req.fs_mount.orangefs_config_server); in orangefs_remount()
254 ret = service_operation(new_op, "orangefs_remount", in orangefs_remount()
265 orangefs_sb->id = new_op->downcall.resp.fs_mount.id; in orangefs_remount()
269 op_release(new_op); in orangefs_remount()
272 new_op = op_alloc(ORANGEFS_VFS_OP_FEATURES); in orangefs_remount()
273 if (!new_op) in orangefs_remount()
275 new_op->upcall.req.features.features = 0; in orangefs_remount()
276 ret = service_operation(new_op, "orangefs_features", in orangefs_remount()
280 new_op->downcall.resp.features.features; in orangefs_remount()
283 op_release(new_op); in orangefs_remount()
464 struct orangefs_kernel_op_s *new_op; in orangefs_mount() local
476 new_op = op_alloc(ORANGEFS_VFS_OP_FS_MOUNT); in orangefs_mount()
477 if (!new_op) in orangefs_mount()
480 strncpy(new_op->upcall.req.fs_mount.orangefs_config_server, in orangefs_mount()
486 new_op->upcall.req.fs_mount.orangefs_config_server); in orangefs_mount()
488 ret = service_operation(new_op, "orangefs_mount", 0); in orangefs_mount()
494 if (new_op->downcall.resp.fs_mount.fs_id == ORANGEFS_FS_ID_NULL) { in orangefs_mount()
504 orangefs_unmount(new_op->downcall.resp.fs_mount.id, in orangefs_mount()
505 new_op->downcall.resp.fs_mount.fs_id, devname); in orangefs_mount()
510 &new_op->downcall.resp.fs_mount, data, in orangefs_mount()
539 op_release(new_op); in orangefs_mount()
545 new_op = op_alloc(ORANGEFS_VFS_OP_FEATURES); in orangefs_mount()
546 if (!new_op) in orangefs_mount()
548 new_op->upcall.req.features.features = 0; in orangefs_mount()
549 ret = service_operation(new_op, "orangefs_features", 0); in orangefs_mount()
550 orangefs_features = new_op->downcall.resp.features.features; in orangefs_mount()
551 op_release(new_op); in orangefs_mount()
570 op_release(new_op); in orangefs_mount()