Skip to content

Commit

Permalink
Make alock_rw a bit field
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
  • Loading branch information
robertbaldyga committed Oct 15, 2024
1 parent b333279 commit 918e8c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ocf_request.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ struct ocf_request {
uint8_t rw : 1;
/*!< Indicator of IO direction - Read/Write */

uint32_t alock_rw: 1;
/*!< Read/Write mode for alock*/

uint8_t d2c : 1;
/**!< request affects metadata cachelines (is not direct-to-core) */

Expand Down Expand Up @@ -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 */

Expand Down

0 comments on commit 918e8c5

Please sign in to comment.