diff options
author | Nikolay Borisov <nborisov@suse.com> | 2019-03-12 18:20:30 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-05-02 14:48:19 +0300 |
commit | 7447555fe7765d7823f5db7760bfdeba035b7bad (patch) | |
tree | a390453fc43d1788dacce25bbdf885192832d580 /crypto/xor.c | |
parent | 4336650aff746e23d387227db826b39f00a3f3c3 (diff) | |
download | linux-7447555fe7765d7823f5db7760bfdeba035b7bad.tar.xz |
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>
Diffstat (limited to 'crypto/xor.c')
0 files changed, 0 insertions, 0 deletions