xfs/310: fix the size calculation for the huge device
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 21 Jul 2016 23:46:35 +0000 (16:46 -0700)
committerEryu Guan <eguan@redhat.com>
Fri, 5 Aug 2016 02:32:10 +0000 (10:32 +0800)
commit1496a4f5e99659af70c48cc5d8411c13512fc686
tree824841de1006fc23879a970d632c9950c7121f91
parent946b199460250a92991fe8f56dcec99670263502
xfs/310: fix the size calculation for the huge device

Fix the calculation of the dmhuge size. The previous calculation
tried to calculate the size correctly, but got it wrong for 1k block
sizes. Therefore, clean the whole mess up.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/310