From c029f78e951e639a989b4f8c93da568374ef0c61 Mon Sep 17 00:00:00 2001 From: Robert Baldyga Date: Tue, 15 Oct 2024 16:15:30 +0200 Subject: [PATCH] Make alock_rw a bit field Signed-off-by: Robert Baldyga --- src/ocf_request.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ocf_request.h b/src/ocf_request.h index 9c71ee6..76e34b8 100644 --- a/src/ocf_request.h +++ b/src/ocf_request.h @@ -1,6 +1,6 @@ /* * Copyright(c) 2012-2022 Intel Corporation - * Copyright(c) 2024 Huawei Technologies + * Copyright(c) 2024-2025 Huawei Technologies * SPDX-License-Identifier: BSD-3-Clause */ @@ -254,6 +254,9 @@ struct ocf_request { uint8_t rw : 1; /*!< Indicator of IO direction - Read/Write */ + uint8_t alock_rw: 1; + /*!< Read/Write mode for alock*/ + uint8_t d2c : 1; /**!< request affects metadata cachelines (is not direct-to-core) */ @@ -309,9 +312,6 @@ struct ocf_request { struct ocf_req_discard_info discard; - uint32_t alock_rw; - /*!< Read/Write mode for alock*/ - uint8_t *alock_status; /*!< Mapping for locked/unlocked alock entries */