summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2016-08-25 18:08:27 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-06 11:16:10 +0100
commit78a587c608f9ef0b0f7bd0bb5f4165a61a782862 (patch)
tree1794c2c252418e30e25d3c8ef79c05396f92f81a /tools/perf/scripts/python/call-graph-from-postgresql.py
parent25ee81e5462015d2ba3792d2ae0ea902a98ae8a4 (diff)
Btrfs: bail out if block group has different mixed flag
commit 49303381f19ab16a371a061b67e783d3f570d56e upstream. Currently we allow inconsistence about mixed flag (BTRFS_BLOCK_GROUP_METADATA | BTRFS_BLOCK_GROUP_DATA). We'd get ENOSPC if block group has mixed flag and btrfs doesn't. If that happens, we have one space_info with mixed flag and another space_info only with BTRFS_BLOCK_GROUP_METADATA, and global_block_rsv.space_info points to the latter one, but all bytes from block_group contributes to the mixed space_info, thus all the allocation will fail with ENOSPC. This adds a check for the above case. Reported-by: Vegard Nossum <vegard.nossum@oracle.com> Signed-off-by: Liu Bo <bo.li.liu@oracle.com> [ updated message ] Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions