bdev: Use the reset enum type instead of an int

Change-Id: Ia1b6503b707d71d6e2687800e750f3c07634f8f3
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Ben Walker 2016-08-19 12:27:19 -07:00 committed by Daniel Verkamp
parent 9272088d93
commit 0ea0a4e646
3 changed files with 4 additions and 4 deletions

View File

@ -282,7 +282,7 @@ struct spdk_bdev_io {
uint64_t length;
} flush;
struct {
int32_t type;
enum spdk_bdev_reset_type type;
} reset;
} u;
@ -393,7 +393,7 @@ struct spdk_bdev_io *spdk_bdev_flush(struct spdk_bdev *bdev,
spdk_bdev_io_completion_cb cb, void *cb_arg);
int spdk_bdev_io_submit(struct spdk_bdev_io *bdev_io);
void spdk_bdev_do_work(void *ctx);
int spdk_bdev_reset(struct spdk_bdev *bdev, int reset_type,
int spdk_bdev_reset(struct spdk_bdev *bdev, enum spdk_bdev_reset_type reset_type,
spdk_bdev_io_completion_cb cb, void *cb_arg);
/* The remaining functions are intended to be called from within

View File

@ -719,7 +719,7 @@ spdk_bdev_flush(struct spdk_bdev *bdev,
}
int
spdk_bdev_reset(struct spdk_bdev *bdev, int reset_type,
spdk_bdev_reset(struct spdk_bdev *bdev, enum spdk_bdev_reset_type reset_type,
spdk_bdev_io_completion_cb cb, void *cb_arg)
{
struct spdk_bdev_io *bdev_io;

View File

@ -158,7 +158,7 @@ spdk_bdev_unmap(struct spdk_bdev *bdev,
}
int
spdk_bdev_reset(struct spdk_bdev *bdev, int reset_type,
spdk_bdev_reset(struct spdk_bdev *bdev, enum spdk_bdev_reset_type reset_type,
spdk_bdev_io_completion_cb cb, void *cb_arg)
{
return 0;