nvme/opal: remove the unnecessary geometry information
Also remove the unused ctx and a function declaration. Change-Id: I2f76d5c4795a0bfa3c075a5be83a7be434df6a64 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1475 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
ebb01092a3
commit
7707df48a3
@ -39,8 +39,6 @@
|
|||||||
|
|
||||||
typedef int (*spdk_opal_cb)(struct spdk_opal_dev *dev, void *ctx);
|
typedef int (*spdk_opal_cb)(struct spdk_opal_dev *dev, void *ctx);
|
||||||
|
|
||||||
static int opal_parse_and_check_status(struct spdk_opal_dev *dev, void *data);
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
opal_send_cmd(struct spdk_opal_dev *dev)
|
opal_send_cmd(struct spdk_opal_dev *dev)
|
||||||
{
|
{
|
||||||
@ -759,11 +757,6 @@ static void
|
|||||||
opal_check_geometry(struct spdk_opal_dev *dev, const void *data)
|
opal_check_geometry(struct spdk_opal_dev *dev, const void *data)
|
||||||
{
|
{
|
||||||
const struct spdk_opal_d0_geo_feat *geo = data;
|
const struct spdk_opal_d0_geo_feat *geo = data;
|
||||||
uint64_t align = from_be64(&geo->alignment_granularity);
|
|
||||||
uint64_t lowest_lba = from_be64(&geo->lowest_aligned_lba);
|
|
||||||
|
|
||||||
dev->align = align;
|
|
||||||
dev->lowest_lba = lowest_lba;
|
|
||||||
|
|
||||||
dev->feat_info.geo = *geo;
|
dev->feat_info.geo = *geo;
|
||||||
}
|
}
|
||||||
|
@ -275,8 +275,6 @@ struct spdk_opal_dev {
|
|||||||
uint16_t comid;
|
uint16_t comid;
|
||||||
uint32_t hsn;
|
uint32_t hsn;
|
||||||
uint32_t tsn;
|
uint32_t tsn;
|
||||||
uint64_t align;
|
|
||||||
uint64_t lowest_lba;
|
|
||||||
|
|
||||||
size_t cmd_pos;
|
size_t cmd_pos;
|
||||||
uint8_t cmd[IO_BUFFER_LENGTH];
|
uint8_t cmd[IO_BUFFER_LENGTH];
|
||||||
@ -291,7 +289,6 @@ struct spdk_opal_dev {
|
|||||||
struct spdk_opal_locking_range_info locking_ranges[SPDK_OPAL_MAX_LOCKING_RANGE];
|
struct spdk_opal_locking_range_info locking_ranges[SPDK_OPAL_MAX_LOCKING_RANGE];
|
||||||
|
|
||||||
pthread_mutex_t mutex_lock; /* some structs are accessed by current thread only */
|
pthread_mutex_t mutex_lock; /* some structs are accessed by current thread only */
|
||||||
void *ctx; /* user context data */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user