summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/tasks.py
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2018-10-11 22:54:09 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-13 22:12:58 +0300
commit3e9205b1d619280c1b7a1348e2e0180b1561a73c (patch)
tree6e62895012b4a941ef80173af52d25d75308a5b3 /scripts/gdb/linux/tasks.py
parent171d45102ea88b69e686d95717f29e8fcffe2e1d (diff)
downloadlinux-3e9205b1d619280c1b7a1348e2e0180b1561a73c.tar.xz
btrfs: don't use ctl->free_space for max_extent_size
commit fb5c39d7a887108087de6ff93d3f326b01b4ef41 upstream. max_extent_size is supposed to be the largest contiguous range for the space info, and ctl->free_space is the total free space in the block group. We need to keep track of these separately and _only_ use the max_free_space if we don't have a max_extent_size, as that means our original request was too large to search any of the block groups for and therefore wouldn't have a max_extent_size set. CC: stable@vger.kernel.org # 4.14+ Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions