btrfs: reada: reduce additional fs_info->reada_lock in reada_find_zone
authorZhao Lei <zhaolei@cn.fujitsu.com>
Fri, 18 Dec 2015 13:48:48 +0000 (21:48 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 16 Feb 2016 12:21:45 +0000 (13:21 +0100)
commitc37f49c7ef317fb8043fd28594d1e5d728a1ef89
tree1a665e48696503f004fbeae82c2cb7de48e2b977
parent503785306d182ab624a2232856ef8ab503ee85f9
btrfs: reada: reduce additional fs_info->reada_lock in reada_find_zone

We can avoid additional locking-acquirment and one pair of
kref_get/put by combine two condition.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/reada.c