aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2021-09-16 12:43:29 +0000
committerDavid Sterba <[email protected]>2021-09-17 17:29:54 +0000
commit0619b7901473c380abc05d45cf9c70bee0707db3 (patch)
treef42753a4a43efeab084230366f5ef47eba8d81d6 /scripts/gcc-plugins/sancov_plugin.c
parentbtrfs: fix mount failure due to past and transient device flush error (diff)
downloadkernel-0619b7901473c380abc05d45cf9c70bee0707db3.tar.gz
kernel-0619b7901473c380abc05d45cf9c70bee0707db3.zip
btrfs: prevent __btrfs_dump_space_info() to underflow its free space
It's not uncommon where __btrfs_dump_space_info() gets called under over-commit situations. In that case free space would underflow as total allocated space is not enough to handle all the over-committed space. Such underflow values can sometimes cause confusion for users enabled enospc_debug mount option, and takes some seconds for developers to convert the underflow value to signed result. Just output the free space as s64 to avoid such problem. Reported-by: Eli V <[email protected]> Link: https://lore.kernel.org/linux-btrfs/CAJtFHUSy4zgyhf-4d9T+KdJp9w=UgzC2A0V=VtmaeEpcGgm1-Q@mail.gmail.com/ CC: [email protected] # 5.4+ Reviewed-by: Anand Jain <[email protected]> Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions