diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2015-08-21 00:36:51 -0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-01-18 20:22:32 -0900 |
commit | 5090b2ba94d70fbdcc1d97dd208b7fc25abdc2b8 (patch) | |
tree | b0d06474b0ff807f4ce8498eef2bdbc382148f20 | |
parent | 8a1bb454c2078b7f0bb3bf097136dbb1a43e30d5 (diff) |
bcache: delete dead code
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r-- | drivers/md/bcache/bcache.h | 2 | ||||
-rw-r--r-- | drivers/md/bcache/super.c | 16 |
2 files changed, 0 insertions, 18 deletions
diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h index 9e1e28d55587..81c5544e84ee 100644 --- a/drivers/md/bcache/bcache.h +++ b/drivers/md/bcache/bcache.h @@ -1193,8 +1193,6 @@ bool bch_cache_set_error(struct cache_set *, const char *, ...); void bch_prio_write(struct cache *); void bch_write_bdev_super(struct cached_dev *, struct closure *); -struct bcache_device *bch_dev_get_by_inode(struct cache_set *, u64); - extern struct workqueue_struct *bcache_io_wq; extern struct mutex bch_register_lock; extern struct list_head bch_cache_sets; diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index a6f71de24f53..c787db192728 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -16,7 +16,6 @@ #include "writeback.h" #include <linux/blkdev.h> -#include <linux/buffer_head.h> #include <linux/debugfs.h> #include <linux/genhd.h> #include <linux/idr.h> @@ -149,21 +148,6 @@ static const char *bch_blkdev_open(const char *path, void *holder, return NULL; } -struct bcache_device *bch_dev_get_by_inode(struct cache_set *c, u64 inode) -{ - struct bcache_device *d; - - rcu_read_lock(); - - d = bch_dev_find(c, inode); - if (d) - closure_get(&d->cl); - - rcu_read_unlock(); - - return d; -} - /* Superblock */ static const char *validate_super(struct bcache_superblock *disk_sb, |