Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx> --- 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 -- Linux-cachefs mailing list Linux-cachefs@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/linux-cachefs