From cc0f4eaa61817aaea6e61a820f3f1c500a5542b1 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Wed, 27 Mar 2013 12:47:45 -0700 Subject: [PATCH] bcache: Use WARN_ONCE() instead of __WARN() Signed-off-by: Kent Overstreet --- drivers/md/bcache/bset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) 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; } -- 2.20.1