[Devel] [PATCH RHEL9 COMMIT] dm-ploop: drop unused arguments in ploop_truncate_prealloc_safe() and ploop_should_prealloc()
Konstantin Khorenko
khorenko at virtuozzo.com
Tue Jul 8 15:19:39 MSK 2025
The commit is pushed to "branch-rh9-5.14.0-427.55.1.vz9.82.x-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh9-5.14.0-427.55.1.vz9.82.3
------>
commit 4962d02d74b67c192dd8c66f37e6cda503ef911c
Author: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
Date: Fri Jul 4 13:24:21 2025 +0300
dm-ploop: drop unused arguments in ploop_truncate_prealloc_safe() and ploop_should_prealloc()
https://virtuozzo.atlassian.net/browse/VSTOR-108868
Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
Reviewed-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Feature: dm-ploop: ploop target driver
---
drivers/md/dm-ploop-map.c | 5 ++---
drivers/md/dm-ploop-target.c | 2 +-
drivers/md/dm-ploop.h | 2 +-
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index cbac93194c344..828ae0b9c0332 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -1144,7 +1144,6 @@ static int ploop_find_dst_clu_bit(struct ploop *ploop, u32 *ret_dst_clu)
ALLOW_ERROR_INJECTION(ploop_find_dst_clu_bit, ERRNO);
static int ploop_truncate_prealloc_safe(struct ploop *ploop,
- struct ploop_delta *delta,
loff_t old_len, loff_t new_len, struct file *file,
const char *func)
{
@@ -1190,7 +1189,7 @@ static int ploop_preallocate_cluster(struct ploop *ploop, struct file *file)
new_len = top->file_size + ploop->prealloc_in_progress;
spin_unlock_irqrestore(&ploop->bat_lock, flags);
- ret = ploop_truncate_prealloc_safe(ploop, top, top->file_size,
+ ret = ploop_truncate_prealloc_safe(ploop, top->file_size,
new_len, file, __func__);
if (ret) {
PL_ERR("Failed to preallocate space: %d\n", ret);
@@ -1220,7 +1219,7 @@ static int ploop_preallocate_cluster(struct ploop *ploop, struct file *file)
}
ALLOW_ERROR_INJECTION(ploop_preallocate_cluster, ERRNO);
-void ploop_should_prealloc(struct ploop *ploop, struct file *file)
+void ploop_should_prealloc(struct ploop *ploop)
{
u32 dst_clu;
u32 clu_size = CLU_SIZE(ploop);
diff --git a/drivers/md/dm-ploop-target.c b/drivers/md/dm-ploop-target.c
index ea5f3a8dab6b6..d0c519fdd97c4 100644
--- a/drivers/md/dm-ploop-target.c
+++ b/drivers/md/dm-ploop-target.c
@@ -611,7 +611,7 @@ static int ploop_ctr(struct dm_target *ti, unsigned int argc, char **argv)
ti->discards_supported = true;
if (ploop->nr_deltas > 0)
- ploop_should_prealloc(ploop, ploop_top_delta(ploop)->file);
+ ploop_should_prealloc(ploop);
return 0;
diff --git a/drivers/md/dm-ploop.h b/drivers/md/dm-ploop.h
index db4d92c9679a6..b66672eef5ee9 100644
--- a/drivers/md/dm-ploop.h
+++ b/drivers/md/dm-ploop.h
@@ -645,7 +645,7 @@ extern int ploop_allocator(void *data);
extern void ploop_disable_writeback_delay(struct ploop *ploop);
extern void ploop_enable_writeback_delay(struct ploop *ploop);
-extern void ploop_should_prealloc(struct ploop *ploop, struct file *file);
+extern void ploop_should_prealloc(struct ploop *ploop);
extern void ploop_resubmit_enospc_pios(struct ploop *ploop);
#endif /* __DM_PLOOP_H */
More information about the Devel
mailing list