Repository navigation
Commit 7447555
btrfs: Factor out common extent locking code in submit_compressed_extents
Irrespective of whether the compress code fell back to uncompressed or
a compressed extent has to be submitted, the extent range is always
locked. So factor out the common lock_extent call at the beginning of
the loop. No functional changes just removes one duplicate lock_extent
call.
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 4336650 commit 7447555
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
| 728 | + | |
728 | 729 | | |
| 730 | + | |
| 731 | + | |
729 | 732 | | |
730 | 733 | | |
731 | 734 | | |
732 | 735 | | |
733 | 736 | | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | 737 | | |
739 | 738 | | |
740 | 739 | | |
| |||
766 | 765 | | |
767 | 766 | | |
768 | 767 | | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | 768 | | |
773 | 769 | | |
774 | 770 | | |
| |||
0 commit comments