Btrfs: use ctl->unit for free space calculation instead of block_group->sectorsize
authorWang Sheng-Hui <shhuiw@gmail.com>
Fri, 30 Nov 2012 06:30:14 +0000 (06:30 +0000)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:17 +0000 (20:46 -0500)
commit960097622d48bf0ee8f6c0cf751a904066c4b45b
treed59435ff5f8e34cfb70586beb82dbbc654a7a279
parent43baa579b3b1f059f68c51ef754ec59c87a35745
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: Wang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/free-space-cache.c