Commit d2f79e6
btrfs: remove redundant BUG_ON() from __btrfs_inc_extent_ref()
At __btrfs_inc_extent_ref() we are doing a BUG_ON() if we are dealing with
a tree block reference that has a reference count that is different from 1,
but we have already dealt with this case at run_delayed_tree_ref(), making
it useless. So remove the BUG_ON().
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 1bf76df commit d2f79e6
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1514 | 1514 | | |
1515 | 1515 | | |
1516 | 1516 | | |
1517 | | - | |
1518 | | - | |
| 1517 | + | |
1519 | 1518 | | |
1520 | 1519 | | |
1521 | | - | |
| 1520 | + | |
1522 | 1521 | | |
1523 | 1522 | | |
1524 | 1523 | | |
1525 | | - | |
| 1524 | + | |
1526 | 1525 | | |
1527 | 1526 | | |
1528 | 1527 | | |
| |||
0 commit comments