]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dm cache: Remove unused btracker_nr_writebacks_queued
authorDr. David Alan Gilbert <linux@treblig.org>
Thu, 3 Oct 2024 01:15:46 +0000 (02:15 +0100)
committerMikulas Patocka <mpatocka@redhat.com>
Wed, 20 Nov 2024 10:38:04 +0000 (11:38 +0100)
btracker_nr_writebacks_queued() has been unused since commit
2e63309507c8 ("dm cache policy smq: don't do any writebacks unless IDLE")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-cache-background-tracker.c
drivers/md/dm-cache-background-tracker.h

index f3051bd7d2df0782e035d66f4582069cbd4b18b4..b4165f172d62f54b423f0eb9ccb89d0870d62bd6 100644 (file)
@@ -143,12 +143,6 @@ static void update_stats(struct background_tracker *b, struct policy_work *w, in
        }
 }
 
-unsigned int btracker_nr_writebacks_queued(struct background_tracker *b)
-{
-       return atomic_read(&b->pending_writebacks);
-}
-EXPORT_SYMBOL_GPL(btracker_nr_writebacks_queued);
-
 unsigned int btracker_nr_demotions_queued(struct background_tracker *b)
 {
        return atomic_read(&b->pending_demotes);
index 09c8fc59f7bb7b349734a428992025aae3cb9eb3..47156c14a44abfdb550300a29d5e65a759351d86 100644 (file)
@@ -50,7 +50,6 @@ struct background_tracker *btracker_create(unsigned int max_work);
  */
 void btracker_destroy(struct background_tracker *b);
 
-unsigned int btracker_nr_writebacks_queued(struct background_tracker *b);
 unsigned int btracker_nr_demotions_queued(struct background_tracker *b);
 
 /*