btrfs: reada: Move is_need_to_readahead contition earlier
authorZhao Lei <zhaolei@cn.fujitsu.com>
Thu, 31 Dec 2015 14:57:52 +0000 (22:57 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 18 Feb 2016 09:26:10 +0000 (10:26 +0100)
commita3f7fde24350a17a589c470265ac2d5a0e6f119f
tree6409a5427d9a6c9f16b1f65512858e3fae231cf8
parent97d5f0e63d78a48cef35349261f90d0d4266dc24
btrfs: reada: Move is_need_to_readahead contition earlier

Move is_need_to_readahead contition earlier to avoid useless loop
to get relative data for readahead.

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