bcache: make is_discard_enabled() static
authorJens Axboe <axboe@kernel.dk>
Wed, 1 May 2019 12:34:09 +0000 (06:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 May 2019 12:34:09 +0000 (06:34 -0600)
It's not used outside this file.

Fixes: 631207314d88 ("bcache: fix failure in journal relplay")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/journal.c

index f9afb16..12dae93 100644 (file)
@@ -318,7 +318,7 @@ void bch_journal_mark(struct cache_set *c, struct list_head *list)
        }
 }
 
-bool is_discard_enabled(struct cache_set *s)
+static bool is_discard_enabled(struct cache_set *s)
 {
        struct cache *ca;
        unsigned int i;