From: Kent Overstreet Date: Wed, 27 Mar 2013 19:47:45 +0000 (-0700) Subject: bcache: Use WARN_ONCE() instead of __WARN() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cc0f4eaa61817aaea6e61a820f3f1c500a5542b1;p=linux-beck.git bcache: Use WARN_ONCE() instead of __WARN() Signed-off-by: Kent Overstreet --- 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; }