Skip to contentSkip to conversation

dm cache metadata: remove unused struct 'thunk'

PATCH In review [email protected] 2 participants 3 messages May 23, 2024 – Jun 25, 2024 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm cache metadata: remove unused struct 'thunk'

From: "Dr. David Alan Gilbert" <[email protected]>

'thunk' has been unused since
commit f177940a8091 ("dm cache metadata: switch to using the new cursor api for loading metadata").

Remove it.

---
 drivers/md/dm-cache-metadata.c | 9 ---------
 1 file changed, 9 deletions(-)
drivers/md/dm-cache-metadata.c +0 -9
index 96751cd3d181..0ad9dc1824fa 100644
@@ -1282,15 +1282,6 @@ int dm_cache_insert_mapping(struct dm_cache_metadata *cmd,
 	return r;
 }
 
-struct thunk {
-	load_mapping_fn fn;
-	void *context;
-
-	struct dm_cache_metadata *cmd;
-	bool respect_dirty_flags;
-	bool hints_valid;
-};
-
 static bool policy_unchanged(struct dm_cache_metadata *cmd,
 			     struct dm_cache_policy *policy)
 {
Signature · 1 line
2.45.1
#1 lore raw
Quoted 9 lines · * [email protected] ([email protected]) wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'thunk' has been unused since
commit f177940a8091 ("dm cache metadata: switch to using the new cursor api for loading metadata").

Remove it.

Ping

Quoted 27 lines
---
 drivers/md/dm-cache-metadata.c | 9 ---------
 1 file changed, 9 deletions(-)
drivers/md/dm-cache-metadata.c +0 -9
index 96751cd3d181..0ad9dc1824fa 100644
@@ -1282,15 +1282,6 @@ int dm_cache_insert_mapping(struct dm_cache_metadata *cmd,
 	return r;
 }
 
-struct thunk {
-	load_mapping_fn fn;
-	void *context;
-
-	struct dm_cache_metadata *cmd;
-	bool respect_dirty_flags;
-	bool hints_valid;
-};
-
 static bool policy_unchanged(struct dm_cache_metadata *cmd,
 			     struct dm_cache_policy *policy)
 {
Signature · 1 line
2.45.1
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/
Reviewed-by on v1 1/1
#2 lore raw
In reply to [email protected]
Quoted 9 lines · On 5/23/24 17:05, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'thunk' has been unused since
commit f177940a8091 ("dm cache metadata: switch to using the new cursor api for loading metadata").

Remove it.

Quoted 24 lines
---
  drivers/md/dm-cache-metadata.c | 9 ---------
  1 file changed, 9 deletions(-)
drivers/md/dm-cache-metadata.c +0 -9
index 96751cd3d181..0ad9dc1824fa 100644
@@ -1282,15 +1282,6 @@ int dm_cache_insert_mapping(struct dm_cache_metadata *cmd,
  	return r;
  }
 
-struct thunk {
-	load_mapping_fn fn;
-	void *context;
-
-	struct dm_cache_metadata *cmd;
-	bool respect_dirty_flags;
-	bool hints_valid;
-};
-
  static bool policy_unchanged(struct dm_cache_metadata *cmd,
  			     struct dm_cache_policy *policy)
  {