Signed-off-by: Fabian Frederick <f...@skynet.be> --- fs/cachefiles/interface.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/fs/cachefiles/interface.c b/fs/cachefiles/interface.c index 2324262..5994527 100644 --- a/fs/cachefiles/interface.c +++ b/fs/cachefiles/interface.c @@ -293,9 +293,8 @@ static void cachefiles_drop_object(struct fscache_object *_object) /* note that the object is now inactive */ if (test_bit(CACHEFILES_OBJECT_ACTIVE, &object->flags)) { write_lock(&cache->active_lock); - if (!test_and_clear_bit(CACHEFILES_OBJECT_ACTIVE, - &object->flags)) - BUG(); + BUG_ON(!test_and_clear_bit(CACHEFILES_OBJECT_ACTIVE, + &object->flags)); rb_erase(&object->active_node, &cache->active_nodes); wake_up_bit(&object->flags, CACHEFILES_OBJECT_ACTIVE); write_unlock(&cache->active_lock); -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/