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

Submitted by Kirill Tkhai on June 15, 2019, 12:30 p.m.

Details

Message ID 156060178908.25680.7724865250485116731.stgit@localhost.localdomain
State New
Series "ploop: Fix wrong argument passed to ploop_set_holes_bitmap_bit()"
Headers show

Commit Message

Kirill Tkhai June 15, 2019, 12:30 p.m.
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@virtuozzo.com>
---
 drivers/block/ploop/fmt_ploop1.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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 =