aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorNaohiro Aota <[email protected]>2024-07-11 23:50:58 +0900
committerDavid Sterba <[email protected]>2024-07-29 19:21:04 +0200
commitd89c285d28491d8f10534c262ac9e6bdcbe1b4d2 (patch)
tree65e74d64790fb797fa3507f86e39f7aa691786f6 /scripts/generate_rust_analyzer.py
parent478574370bef7951fbd9ef5155537d6cbed49472 (diff)
btrfs: do not subtract delalloc from avail bytes
The block group's avail bytes printed when dumping a space info subtract the delalloc_bytes. However, as shown in btrfs_add_reserved_bytes() and btrfs_free_reserved_bytes(), it is added or subtracted along with "reserved" for the delalloc case, which means the "delalloc_bytes" is a part of the "reserved" bytes. So, excluding it to calculate the avail space counts delalloc_bytes twice, which can lead to an invalid result. Fixes: e50b122b832b ("btrfs: print available space for a block group when dumping a space info") CC: [email protected] # 6.6+ Signed-off-by: Naohiro Aota <[email protected]> Reviewed-by: Boris Burkov <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions