[Devel] [RFC PATCH vz9 v5 24/49] dm-ploop: drop ploop_cluster_is_in_top_delta()

Alexander Atanasov alexander.atanasov at virtuozzo.com
Mon Nov 18 09:24:51 MSK 2024


From: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>

as all it's users are gone or reworked

https://virtuozzo.atlassian.net/browse/VSTOR-91817
Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
---
 drivers/md/dm-ploop.h | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/drivers/md/dm-ploop.h b/drivers/md/dm-ploop.h
index 2fab968b12bf..f0ef897fef3f 100644
--- a/drivers/md/dm-ploop.h
+++ b/drivers/md/dm-ploop.h
@@ -449,20 +449,6 @@ static inline u32 ploop_bat_entries(struct ploop *ploop, u32 clu,
 	return dst_clu;
 }
 
-static inline bool ploop_cluster_is_in_top_delta(struct ploop *ploop, u32 clu)
-{
-	u32 dst_clu;
-	u8 level;
-
-	if (WARN_ON(clu >= ploop->nr_bat_entries))
-		return false;
-	dst_clu = ploop_bat_entries(ploop, clu, &level, NULL);
-
-	if (dst_clu == BAT_ENTRY_NONE || level < ploop_top_level(ploop))
-		return false;
-	return true;
-}
-
 static inline bool ploop_md_page_cluster_is_in_top_delta(struct ploop *ploop,
 					   struct md_page *md, u32 clu)
 {
-- 
2.43.0



More information about the Devel mailing list