summaryrefslogtreecommitdiff
path: root/drivers/md/bcache
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2013-03-27 12:47:45 -0700
committerKent Overstreet <koverstreet@google.com>2013-04-08 13:33:48 -0700
commitcc0f4eaa61817aaea6e61a820f3f1c500a5542b1 (patch)
tree9a4df16f3accd92221ca3ac2e75c86bb5a7b9118 /drivers/md/bcache
parentcd953ed0363b28e3dc503b735cc4079e9f5edba7 (diff)
downloadlinux-3.10-cc0f4eaa61817aaea6e61a820f3f1c500a5542b1.tar.gz
linux-3.10-cc0f4eaa61817aaea6e61a820f3f1c500a5542b1.tar.bz2
linux-3.10-cc0f4eaa61817aaea6e61a820f3f1c500a5542b1.zip
bcache: Use WARN_ONCE() instead of __WARN()
Signed-off-by: Kent Overstreet <koverstreet@google.com>
Diffstat (limited to 'drivers/md/bcache')
-rw-r--r--drivers/md/bcache/bset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/bset.c b/drivers/md/bcache/bset.c
index d4f2164ca55..cb4578a327b 100644
--- a/drivers/md/bcache/bset.c
+++ b/drivers/md/bcache/bset.c
@@ -883,7 +883,7 @@ struct bkey *bch_btree_iter_next(struct btree_iter *iter)
iter->data->k = bkey_next(iter->data->k);
if (iter->data->k > iter->data->end) {
- __WARN();
+ WARN_ONCE(1, "bset was corrupt!\n");
iter->data->k = iter->data->end;
}