[Devel] [PATCH vz9 v1 47/63] dm-ploop: remove unnecessary operations

Alexander Atanasov alexander.atanasov at virtuozzo.com
Fri Jan 24 18:36:21 MSK 2025


- no point to sync before write
- no point to reverse the list order since it is resubmit and
order is lost  already

https://virtuozzo.atlassian.net/browse/VSTOR-91821
Signed-off-by: Alexander Atanasov <alexander.atanasov at virtuozzo.com>
---
 drivers/md/dm-ploop-cmd.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/md/dm-ploop-cmd.c b/drivers/md/dm-ploop-cmd.c
index 88af310ee52d..e080d6afaa7f 100644
--- a/drivers/md/dm-ploop-cmd.c
+++ b/drivers/md/dm-ploop-cmd.c
@@ -243,11 +243,6 @@ static int ploop_write_cluster_sync(struct ploop *ploop, struct pio *pio,
 {
 	struct file *file = ploop_top_delta(ploop)->file;
 	DECLARE_COMPLETION_ONSTACK(completion);
-	int ret;
-
-	ret = vfs_fsync(file, 0);
-	if (ret)
-		return ret;
 
 	ploop_init_pio(ploop, REQ_OP_WRITE, pio);
 	ploop_pio_prepare_offsets(ploop, pio, dst_clu);
-- 
2.43.0



More information about the Devel mailing list