aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2013-03-27 15:47:45 -0400
committerKent Overstreet <koverstreet@google.com>2013-04-08 16:33:48 -0400
commitcc0f4eaa61817aaea6e61a820f3f1c500a5542b1 (patch)
tree9a4df16f3accd92221ca3ac2e75c86bb5a7b9118
parentcd953ed0363b28e3dc503b735cc4079e9f5edba7 (diff)
bcache: Use WARN_ONCE() instead of __WARN()
Signed-off-by: Kent Overstreet <koverstreet@google.com>
-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 d4f2164ca551..cb4578a327b9 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)
883 iter->data->k = bkey_next(iter->data->k); 883 iter->data->k = bkey_next(iter->data->k);
884 884
885 if (iter->data->k > iter->data->end) { 885 if (iter->data->k > iter->data->end) {
886 __WARN(); 886 WARN_ONCE(1, "bset was corrupt!\n");
887 iter->data->k = iter->data->end; 887 iter->data->k = iter->data->end;
888 } 888 }
889 889