[Devel] [PATCH rh7] ploop: Fix wrong argument passed to ploop_set_holes_bitmap_bit()

Kirill Tkhai ktkhai at virtuozzo.com
Sat Jun 15 15:30:00 MSK 2019


delta must be passed there.

Strange thing, but using config.OpenVZ.minimal,
gcc does not warn about this on my environment.

Fixes: 33021248ad30 "ploop: Introduce set- and clear- holes_bitmap wrappers"
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 drivers/block/ploop/fmt_ploop1.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/ploop/fmt_ploop1.c b/drivers/block/ploop/fmt_ploop1.c
index 8a890577e35d..5fc2931ee324 100644
--- a/drivers/block/ploop/fmt_ploop1.c
+++ b/drivers/block/ploop/fmt_ploop1.c
@@ -854,7 +854,7 @@ static void ploop1_add_free_blk(struct ploop_delta *delta, struct ploop_request
 	}
 
 	WARN_ON_ONCE(test_bit(cluster, delta->holes_bitmap));
-	ploop_set_holes_bitmap_bit(cluster, delta->holes_bitmap);
+	ploop_set_holes_bitmap_bit(cluster, delta);
 }
 
 static struct ploop_delta_ops ploop1_delta_ops =



More information about the Devel mailing list