Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

btrfs: remove pointless WARN_ON() in cache_save_setup()

This WARN_ON(ret) is never executed since the previous if statement makes
us jump into the 'out_put' label when ret is not zero. The existing
transaction abort inside the if statement also gives us a stack trace,
so we don't need to move the WARN_ON(ret) into the if statement either.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>

authored by

Filipe Manana and committed by
David Sterba
8ac7fad3 912db406

-1
-1
fs/btrfs/block-group.c
··· 3341 3341 btrfs_abort_transaction(trans, ret); 3342 3342 goto out_put; 3343 3343 } 3344 - WARN_ON(ret); 3345 3344 3346 3345 /* We've already setup this transaction, go ahead and exit */ 3347 3346 if (block_group->cache_generation == trans->transid &&