Skip to content

Commit 2133ebe

Browse files
Dr. David Alan GilbertMikulas Patocka
authored andcommitted
dm cache: Remove unused btracker_nr_writebacks_queued
btracker_nr_writebacks_queued() has been unused since commit 2e63309 ("dm cache policy smq: don't do any writebacks unless IDLE") Remove it. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Signed-off-by: Mikulas Patocka <[email protected]>
1 parent adc2186 commit 2133ebe

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

drivers/md/dm-cache-background-tracker.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,6 @@ static void update_stats(struct background_tracker *b, struct policy_work *w, in
143143
}
144144
}
145145

146-
unsigned int btracker_nr_writebacks_queued(struct background_tracker *b)
147-
{
148-
return atomic_read(&b->pending_writebacks);
149-
}
150-
EXPORT_SYMBOL_GPL(btracker_nr_writebacks_queued);
151-
152146
unsigned int btracker_nr_demotions_queued(struct background_tracker *b)
153147
{
154148
return atomic_read(&b->pending_demotes);

drivers/md/dm-cache-background-tracker.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ struct background_tracker *btracker_create(unsigned int max_work);
5050
*/
5151
void btracker_destroy(struct background_tracker *b);
5252

53-
unsigned int btracker_nr_writebacks_queued(struct background_tracker *b);
5453
unsigned int btracker_nr_demotions_queued(struct background_tracker *b);
5554

5655
/*

0 commit comments

Comments
 (0)