Btrfs: set device->total_disk_bytes when adding new device
commit2cc3c559fb2fe8cecca82a517bc56e88b0c1effd
authorYan Zheng <zheng.yan@oracle.com>
Thu, 4 Jun 2009 13:23:50 +0000 (4 09:23 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 4 Jun 2009 13:23:57 +0000 (4 09:23 -0400)
treed060c3b3d9943a8f8aaddc5f6748b9ca59d90ee5
parent9f55684c2d9869e8cc53595a3fee679958511cfb
Btrfs: set device->total_disk_bytes when adding new device

It was not being properly initialized, and so the size saved to
disk was not correct.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c