summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-01-31 01:55:01 +0100
committerJosef Bacik <jbacik@fusionio.com>2013-02-20 18:59:26 +0100
commit063d006fa06fbf73fab370921120380333a33e85 (patch)
tree5a6650052c7409fc8895762fcc7ef8015e5088b8 /fs/btrfs/disk-io.c
parentbtrfs: remove unnecessary DEFINE_WAIT() declarations (diff)
downloadlinux-063d006fa06fbf73fab370921120380333a33e85.tar.xz
linux-063d006fa06fbf73fab370921120380333a33e85.zip
btrfs: ensure we don't overrun devices_info[] in __btrfs_alloc_chunk
WARN_ON isn't enough, we need to stop the loop if for any reason we would overrun the devices_info array. I tried to track down the connection between the length of the alloc_devices list and the rw_devices counter but it wasn't immediately obvious, so be defensive about it. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions