Lines Matching refs:new_op

167 	struct orangefs_kernel_op_s *new_op = NULL;  in orangefs_statfs()  local
179 new_op = op_alloc(ORANGEFS_VFS_OP_STATFS); in orangefs_statfs()
180 if (!new_op) in orangefs_statfs()
182 new_op->upcall.req.statfs.fs_id = ORANGEFS_SB(sb)->fs_id; in orangefs_statfs()
187 ret = service_operation(new_op, "orangefs_statfs", flags); in orangefs_statfs()
189 if (new_op->downcall.status < 0) in orangefs_statfs()
197 (long)new_op->downcall.resp.statfs.blocks_avail, in orangefs_statfs()
198 (long)new_op->downcall.resp.statfs.blocks_total, in orangefs_statfs()
199 (long)new_op->downcall.resp.statfs.block_size, in orangefs_statfs()
200 (long)new_op->downcall.resp.statfs.files_total, in orangefs_statfs()
201 (long)new_op->downcall.resp.statfs.files_avail); in orangefs_statfs()
205 buf->f_bsize = new_op->downcall.resp.statfs.block_size; in orangefs_statfs()
208 buf->f_blocks = (sector_t) new_op->downcall.resp.statfs.blocks_total; in orangefs_statfs()
209 buf->f_bfree = (sector_t) new_op->downcall.resp.statfs.blocks_avail; in orangefs_statfs()
210 buf->f_bavail = (sector_t) new_op->downcall.resp.statfs.blocks_avail; in orangefs_statfs()
211 buf->f_files = (sector_t) new_op->downcall.resp.statfs.files_total; in orangefs_statfs()
212 buf->f_ffree = (sector_t) new_op->downcall.resp.statfs.files_avail; in orangefs_statfs()
216 op_release(new_op); in orangefs_statfs()
248 struct orangefs_kernel_op_s *new_op; in orangefs_remount() local
253 new_op = op_alloc(ORANGEFS_VFS_OP_FS_MOUNT); in orangefs_remount()
254 if (!new_op) in orangefs_remount()
256 strncpy(new_op->upcall.req.fs_mount.orangefs_config_server, in orangefs_remount()
262 new_op->upcall.req.fs_mount.orangefs_config_server); in orangefs_remount()
269 ret = service_operation(new_op, "orangefs_remount", in orangefs_remount()
280 orangefs_sb->id = new_op->downcall.resp.fs_mount.id; in orangefs_remount()
284 op_release(new_op); in orangefs_remount()
287 new_op = op_alloc(ORANGEFS_VFS_OP_FEATURES); in orangefs_remount()
288 if (!new_op) in orangefs_remount()
290 new_op->upcall.req.features.features = 0; in orangefs_remount()
291 ret = service_operation(new_op, "orangefs_features", in orangefs_remount()
295 new_op->downcall.resp.features.features; in orangefs_remount()
298 op_release(new_op); in orangefs_remount()
481 struct orangefs_kernel_op_s *new_op; in orangefs_mount() local
493 new_op = op_alloc(ORANGEFS_VFS_OP_FS_MOUNT); in orangefs_mount()
494 if (!new_op) in orangefs_mount()
497 strncpy(new_op->upcall.req.fs_mount.orangefs_config_server, in orangefs_mount()
503 new_op->upcall.req.fs_mount.orangefs_config_server); in orangefs_mount()
505 ret = service_operation(new_op, "orangefs_mount", 0); in orangefs_mount()
511 if (new_op->downcall.resp.fs_mount.fs_id == ORANGEFS_FS_ID_NULL) { in orangefs_mount()
521 orangefs_unmount(new_op->downcall.resp.fs_mount.id, in orangefs_mount()
522 new_op->downcall.resp.fs_mount.fs_id, devname); in orangefs_mount()
534 &new_op->downcall.resp.fs_mount, data, in orangefs_mount()
563 op_release(new_op); in orangefs_mount()
569 new_op = op_alloc(ORANGEFS_VFS_OP_FEATURES); in orangefs_mount()
570 if (!new_op) in orangefs_mount()
572 new_op->upcall.req.features.features = 0; in orangefs_mount()
573 ret = service_operation(new_op, "orangefs_features", 0); in orangefs_mount()
574 orangefs_features = new_op->downcall.resp.features.features; in orangefs_mount()
575 op_release(new_op); in orangefs_mount()
594 op_release(new_op); in orangefs_mount()