libata: use the enlarged capacity after late HPA unlock
authorTejun Heo <tj@kernel.org>
Sat, 15 May 2010 18:09:33 +0000 (20:09 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 2 Jun 2010 17:50:07 +0000 (13:50 -0400)
After late HPA unlock, libata kept using the original capacity
ignoring the new larger native capacity.  Enlarging device on the fly
doesn't cause any harm.  Use the larger native capacity instead.  This
will enable on-demand HPA unlocking.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

No differences found