[Devel] [PATCH VZ9 v3 09/13] dm-ploop: drop ploop_cluster_is_in_top_delta()

Andrey Zhadchenko andrey.zhadchenko at virtuozzo.com
Thu Oct 24 20:23:37 MSK 2024


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 98dd472a815e..d1d8303ba28c 100644
--- a/drivers/md/dm-ploop.h
+++ b/drivers/md/dm-ploop.h
@@ -442,20 +442,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.39.3



More information about the Devel mailing list