summaryrefslogtreecommitdiffstats
path: root/fs/qnx4
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2017-12-13 10:25:37 +0200
committerDavid Sterba <dsterba@suse.com>2018-01-22 16:08:19 +0100
commit32506af595dcaa8b71b7858bb54ccaa310d274fb (patch)
treed52cb516e7cb6d17228872e6e7f3c3b690b5fef0 /fs/qnx4
parent4271ecea64f40683d28d83ad433ddc43e5ca2ee9 (diff)
downloadtalos-obmc-linux-32506af595dcaa8b71b7858bb54ccaa310d274fb.tar.gz
talos-obmc-linux-32506af595dcaa8b71b7858bb54ccaa310d274fb.zip
btrfs: Remove redundant bio_get/set calls in compressed read/write paths
bio_get/set is necessary only if the bio is going to be referenced following submissions. In the code paths where such calls are made we don't really need them since the bio is referenced only if btrfs_map_bio returns an error. And this function can return an error prior to submission only. So referencing the bio is safe. Furthermore we do call bio_endio which will consume the last reference. So let's remove the redundant calls. 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 'fs/qnx4')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud