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 unreachable return after btrfs_backref_panic() in btrfs_backref_finish_upper_links()

The return statement after btrfs_backref_panic() is unreachable since
btrfs_backref_panic() calls BUG() which never returns. Remove the
return to unify it with the other calls to btrfs_backref_panic().

Signed-off-by: Zhen Ni <zhen.ni@easystack.cn>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>

authored by

Zhen Ni and committed by
David Sterba
4cdb457a c28214bd

+1 -3
+1 -3
fs/btrfs/backref.c
··· 3609 3609 } 3610 3610 3611 3611 rb_node = rb_simple_insert(&cache->rb_root, &upper->simple_node); 3612 - if (unlikely(rb_node)) { 3612 + if (unlikely(rb_node)) 3613 3613 btrfs_backref_panic(cache->fs_info, upper->bytenr, -EEXIST); 3614 - return -EUCLEAN; 3615 - } 3616 3614 3617 3615 list_add_tail(&edge->list[UPPER], &upper->lower); 3618 3616