summaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2015-12-18 21:33:05 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-18 18:35:15 -0700
commit94ad29d2ad1010e9966b385a3d4151fb475cfc61 (patch)
tree2f61857ed5c256ed58b3c2a0dcd6b9efb562e901 /fs/btrfs/disk-io.c
parente23744bfad9fad9d1991298a449342e6f76dd1a6 (diff)
btrfs: reada: Fix in-segment calculation for reada
commit 503785306d182ab624a2232856ef8ab503ee85f9 upstream. reada_zone->end is end pos of segment: end = start + cache->key.offset - 1; So we need to use "<=" in condition to judge is a pos in the segment. The problem happened rearly, because logical pos rarely pointed to last 4k of a blockgroup, but we need to fix it to make code right in logic. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions