libata: use the enlarged capacity after late HPA unlock
commit68939ce5fc17ee9c03ef6e543d4f82bd9f5583d4
authorTejun Heo <tj@kernel.org>
Sat, 15 May 2010 18:09:33 +0000 (15 20:09 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 2 Jun 2010 17:50:07 +0000 (2 13:50 -0400)
tree7f1e0d98c7c6fe102393d80f07efca6ada8c3fde
parent72ec24bd7725545bc149d80cbd21a7578d9aa206
libata: use the enlarged capacity after late HPA unlock

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>
drivers/ata/libata-core.c