Skip to content
Commit 96009762 authored by Wang Sheng-Hui's avatar Wang Sheng-Hui Committed by Chris Mason
Browse files

Btrfs: use ctl->unit for free space calculation instead of block_group->sectorsize



We should use ctl->unit for free space calculation instead of block_group->sectorsize
even though for free space use_bitmap or free space cluster we only have sectorsize assigned to ctl->unit currently. Also, we can keep it consisten in code style.

Signed-off-by: default avatarWang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
parent 43baa579
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment