]> git.karo-electronics.de Git - linux-beck.git/commitdiff
bcache: Use WARN_ONCE() instead of __WARN()
authorKent Overstreet <koverstreet@google.com>
Wed, 27 Mar 2013 19:47:45 +0000 (12:47 -0700)
committerKent Overstreet <koverstreet@google.com>
Mon, 8 Apr 2013 20:33:48 +0000 (13:33 -0700)
Signed-off-by: Kent Overstreet <koverstreet@google.com>
drivers/md/bcache/bset.c

index d4f2164ca5515a909283408ea9b3b822a7de5ec5..cb4578a327b9d2841d43b58afd9be238d5d38a6c 100644 (file)
@@ -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;
                }