Nikolay Borisov 7447555fe7 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>
2019-05-02 13:48:19 +02:00
..
2019-04-29 19:25:37 +02:00
2019-04-29 19:25:37 +02:00
2019-04-29 19:02:52 +02:00
2018-08-06 13:12:43 +02:00
2019-04-29 19:02:53 +02:00
2018-04-12 16:29:55 +02:00
2018-03-26 15:09:39 +02:00
2019-03-26 10:32:13 -07:00
2018-08-06 13:12:43 +02:00