bdev: Use not C++ style comments // but C-style comments /* */

Change-Id: Ic3026ae58e8495586fc9c6e61a570cd050819b67
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/431080
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Shuhei Matsumoto 2018-10-29 11:45:42 +09:00 committed by Ben Walker
parent 65e5bbdc05
commit bf9dbb9f3b
9 changed files with 18 additions and 18 deletions

View File

@ -89,9 +89,9 @@ struct spdk_fio_thread {
TAILQ_HEAD(, spdk_fio_target) targets; TAILQ_HEAD(, spdk_fio_target) targets;
struct io_u **iocq; // io completion queue struct io_u **iocq; /* io completion queue */
unsigned int iocq_count; // number of iocq entries filled by last getevents unsigned int iocq_count; /* number of iocq entries filled by last getevents */
unsigned int iocq_size; // number of iocq entries allocated unsigned int iocq_size; /* number of iocq entries allocated */
}; };
static struct spdk_fio_thread *g_init_thread = NULL; static struct spdk_fio_thread *g_init_thread = NULL;
@ -698,20 +698,20 @@ struct ioengine_ops ioengine = {
.flags = FIO_RAWIO | FIO_NOEXTEND | FIO_NODISKUTIL | FIO_MEMALIGN, .flags = FIO_RAWIO | FIO_NOEXTEND | FIO_NODISKUTIL | FIO_MEMALIGN,
.setup = spdk_fio_setup, .setup = spdk_fio_setup,
.init = spdk_fio_init, .init = spdk_fio_init,
//.prep = unused, /* .prep = unused, */
.queue = spdk_fio_queue, .queue = spdk_fio_queue,
//.commit = unused, /* .commit = unused, */
.getevents = spdk_fio_getevents, .getevents = spdk_fio_getevents,
.event = spdk_fio_event, .event = spdk_fio_event,
//.errdetails = unused, /* .errdetails = unused, */
//.cancel = unused, /* .cancel = unused, */
.cleanup = spdk_fio_cleanup, .cleanup = spdk_fio_cleanup,
.open_file = spdk_fio_open, .open_file = spdk_fio_open,
.close_file = spdk_fio_close, .close_file = spdk_fio_close,
.invalidate = spdk_fio_invalidate, .invalidate = spdk_fio_invalidate,
//.unlink_file = unused, /* .unlink_file = unused, */
//.get_file_size = unused, /* .get_file_size = unused, */
//.terminate = unused, /* .terminate = unused, */
.iomem_alloc = spdk_fio_iomem_alloc, .iomem_alloc = spdk_fio_iomem_alloc,
.iomem_free = spdk_fio_iomem_free, .iomem_free = spdk_fio_iomem_free,
.io_u_init = spdk_fio_io_u_init, .io_u_init = spdk_fio_io_u_init,

View File

@ -77,4 +77,4 @@ struct spdk_bdev *create_aio_disk(const char *name, const char *filename, uint32
void delete_aio_disk(struct spdk_bdev *bdev, spdk_delete_aio_complete cb_fn, void *cb_arg); void delete_aio_disk(struct spdk_bdev *bdev, spdk_delete_aio_complete cb_fn, void *cb_arg);
#endif // SPDK_BDEV_AIO_H #endif /* SPDK_BDEV_AIO_H */

View File

@ -73,4 +73,4 @@ void spdk_vbdev_error_delete(struct spdk_bdev *vbdev, spdk_delete_error_complete
int spdk_vbdev_inject_error(char *name, uint32_t io_type, uint32_t error_type, int spdk_vbdev_inject_error(char *name, uint32_t io_type, uint32_t error_type,
uint32_t error_num); uint32_t error_num);
#endif // SPDK_VBDEV_ERROR_H #endif /* SPDK_VBDEV_ERROR_H */

View File

@ -72,4 +72,4 @@ int create_iscsi_disk(const char *bdev_name, const char *initiator_iqn, const ch
*/ */
void delete_iscsi_disk(struct spdk_bdev *bdev, spdk_delete_iscsi_complete cb_fn, void *cb_arg); void delete_iscsi_disk(struct spdk_bdev *bdev, spdk_delete_iscsi_complete cb_fn, void *cb_arg);
#endif // SPDK_BDEV_ISCSI_H #endif /* SPDK_BDEV_ISCSI_H */

View File

@ -109,4 +109,4 @@ struct spdk_nvme_ctrlr *spdk_bdev_nvme_get_ctrlr(struct spdk_bdev *bdev);
*/ */
int spdk_bdev_nvme_delete(const char *name); int spdk_bdev_nvme_delete(const char *name);
#endif // SPDK_BDEV_NVME_H #endif /* SPDK_BDEV_NVME_H */

View File

@ -593,7 +593,7 @@ raid_bdev_submit_request(struct spdk_io_channel *ch, struct spdk_bdev_io *bdev_i
break; break;
case SPDK_BDEV_IO_TYPE_FLUSH: case SPDK_BDEV_IO_TYPE_FLUSH:
// TODO: support flush if requirement comes /* TODO: support flush if requirement comes */
spdk_bdev_io_complete(bdev_io, SPDK_BDEV_IO_STATUS_SUCCESS); spdk_bdev_io_complete(bdev_io, SPDK_BDEV_IO_STATUS_SUCCESS);
break; break;

View File

@ -222,4 +222,4 @@ int raid_bdev_config_add_base_bdev(struct raid_bdev_config *raid_cfg,
void raid_bdev_config_cleanup(struct raid_bdev_config *raid_cfg); void raid_bdev_config_cleanup(struct raid_bdev_config *raid_cfg);
struct raid_bdev_config *raid_bdev_config_find_by_name(const char *raid_name); struct raid_bdev_config *raid_bdev_config_find_by_name(const char *raid_name);
#endif // SPDK_BDEV_RAID_INTERNAL_H #endif /* SPDK_BDEV_RAID_INTERNAL_H */

View File

@ -52,4 +52,4 @@ struct spdk_bdev *spdk_bdev_rbd_create(const char *name, const char *pool_name,
void spdk_bdev_rbd_delete(struct spdk_bdev *bdev, spdk_delete_rbd_complete cb_fn, void spdk_bdev_rbd_delete(struct spdk_bdev *bdev, spdk_delete_rbd_complete cb_fn,
void *cb_arg); void *cb_arg);
#endif // SPDK_BDEV_RBD_H #endif /* SPDK_BDEV_RBD_H */

View File

@ -65,4 +65,4 @@ int spdk_vbdev_split_destruct(const char *base_bdev_name);
*/ */
struct spdk_bdev_part_base *spdk_vbdev_split_get_part_base(struct spdk_bdev *base_bdev); struct spdk_bdev_part_base *spdk_vbdev_split_get_part_base(struct spdk_bdev *base_bdev);
#endif // SPDK_VBDEV_SPLIT_H #endif /* SPDK_VBDEV_SPLIT_H */