Make alock_rw a bit field

Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
This commit is contained in:
Robert Baldyga 2024-10-15 16:15:30 +02:00
parent b3332793bb
commit c029f78e95

View File

@ -1,6 +1,6 @@
/* /*
* Copyright(c) 2012-2022 Intel Corporation * Copyright(c) 2012-2022 Intel Corporation
* Copyright(c) 2024 Huawei Technologies * Copyright(c) 2024-2025 Huawei Technologies
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
@ -254,6 +254,9 @@ struct ocf_request {
uint8_t rw : 1; uint8_t rw : 1;
/*!< Indicator of IO direction - Read/Write */ /*!< Indicator of IO direction - Read/Write */
uint8_t alock_rw: 1;
/*!< Read/Write mode for alock*/
uint8_t d2c : 1; uint8_t d2c : 1;
/**!< request affects metadata cachelines (is not direct-to-core) */ /**!< request affects metadata cachelines (is not direct-to-core) */
@ -309,9 +312,6 @@ struct ocf_request {
struct ocf_req_discard_info discard; struct ocf_req_discard_info discard;
uint32_t alock_rw;
/*!< Read/Write mode for alock*/
uint8_t *alock_status; uint8_t *alock_status;
/*!< Mapping for locked/unlocked alock entries */ /*!< Mapping for locked/unlocked alock entries */