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