summaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/writeback.c
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2013-05-15 09:11:26 +0200
committerKent Overstreet <koverstreet@google.com>2013-05-15 09:48:14 +0200
commitf59fce847fc8483508b5028c24e2b1e00523dd88 (patch)
tree1701605027713bc535c2c21e7b4792433dc091a3 /drivers/md/bcache/writeback.c
parentbcache: clarify free/available/unused space (diff)
downloadlinux-f59fce847fc8483508b5028c24e2b1e00523dd88.tar.xz
linux-f59fce847fc8483508b5028c24e2b1e00523dd88.zip
bcache: Fix error handling in init code
This code appears to have rotted... fix various bugs and do some refactoring. Signed-off-by: Kent Overstreet <koverstreet@google.com>
Diffstat (limited to 'drivers/md/bcache/writeback.c')
-rw-r--r--drivers/md/bcache/writeback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/writeback.c b/drivers/md/bcache/writeback.c
index 93e7e31a4bd3..2714ed3991d1 100644
--- a/drivers/md/bcache/writeback.c
+++ b/drivers/md/bcache/writeback.c
@@ -375,7 +375,7 @@ err:
refill_dirty(cl);
}
-void bch_writeback_init_cached_dev(struct cached_dev *dc)
+void bch_cached_dev_writeback_init(struct cached_dev *dc)
{
closure_init_unlocked(&dc->writeback);
init_rwsem(&dc->writeback_lock);