btrfs: Fix calculation of rbio->dbitmap's size calculation
authorZhao Lei <zhaolei@cn.fujitsu.com>
Mon, 8 Dec 2014 11:55:57 +0000 (19:55 +0800)
committerChris Mason <clm@fb.com>
Wed, 20 Jan 2016 15:22:15 +0000 (07:22 -0800)
commitbfca9a6d4b1322ba36235e8a652f05a9668ef59b
tree863e7cad45616ddc8a5417919d696ced884ddd2e
parente1746e8381cd2af421f75557b5cae3604fc18b35
btrfs: Fix calculation of rbio->dbitmap's size calculation

Current code is trying to calculate rbio->dbitmap's size to make it
align to sizeof(long), but implement haven't achived this object,
it is align to sizeof(char) instead.
This patch fixed above calculation, and use sizeof(long) instead of
fixed "8" to increate compatibility.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/raid56.c
fs/btrfs/scrub.c