Skip to content

Commit

Permalink
bcache: make is_discard_enabled() static
Browse files Browse the repository at this point in the history
It's not used outside this file.

Fixes: 6312073 ("bcache: fix failure in journal relplay")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Jens Axboe committed May 1, 2019
1 parent 12adb7a commit 2d5abb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/bcache/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d5abb9

Please sign in to comment.