Skip to content

Small fixes and refactors#930

Merged
robertbaldyga merged 9 commits intoOpen-CAS:masterfrom
robertbaldyga:fixes-refactors-20260226
Feb 26, 2026
Merged

Small fixes and refactors#930
robertbaldyga merged 9 commits intoOpen-CAS:masterfrom
robertbaldyga:fixes-refactors-20260226

Conversation

@robertbaldyga
Copy link
Member

No description provided.

robertbaldyga and others added 9 commits February 25, 2026 22:53
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
The existing OCF_DIV_ROUND_UP() consists of expressions that
can't be used to define size of static array.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Silence compiler warnings.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
The req->error does no longer convey error codes from lower layers.
This field is in a full control of the request owner, so the queue
should not modify it's value, to avoid tricky bugs.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Initialize req->core in ocf_req_new() so that there is no need
to set it manually.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Separate iterator advance from getting current LRU list index:
- The iterator goes over elements, not only lists, so returning
  a list number is rather a weird artifact than obvious behavior.
- It makes the code more readable in the places, where only iter
  advance is needed, without getting a list index.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
@robertbaldyga robertbaldyga merged commit fff4fc2 into Open-CAS:master Feb 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants