[Devel] fuse: pcs: dangerous typo

Alexey Kuznetsov kuznet at virtuozzo.com
Thu Nov 23 12:54:01 MSK 2023


Unpleasant, shows the code never was in this place before.

https://pmc.acronis.work/browse/VSTOR-77923

Signed-off-by: Alexey Kuznetsov <kuznet at acronis.com>
---
 fs/fuse/kio/pcs/pcs_map.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fuse/kio/pcs/pcs_map.c b/fs/fuse/kio/pcs/pcs_map.c
index ae13557..eabad8a 100644
--- a/fs/fuse/kio/pcs/pcs_map.c
+++ b/fs/fuse/kio/pcs/pcs_map.c
@@ -2877,7 +2877,7 @@ static int commit_sync_info(struct pcs_int_request *req,
 			int idx;
 			clear_bit(CS_SF_REPLICATING, &csl->cs[read_idx].cslink.cs->state);
 			clear_bit(read_idx, &csl->blacklist);
-			for (idx = csl->nsrv - 1; idx >= 0; idx++) {
+			for (idx = csl->nsrv - 1; idx >= 0; idx--) {
 				if (test_bit(CS_SF_REPLICATING, &csl->cs[idx].cslink.cs->state))
 					break;
 			}
-- 
1.8.3.1



More information about the Devel mailing list