aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/partitions/check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 8f01df354f0..4f1fee0355a 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -601,10 +601,10 @@ rescan:
601 "%s: p%d size %llu exceeds device capacity, ", 601 "%s: p%d size %llu exceeds device capacity, ",
602 disk->disk_name, p, (unsigned long long) size); 602 disk->disk_name, p, (unsigned long long) size);
603 603
604 if (bdops->set_capacity && 604 if (bdops->unlock_native_capacity &&
605 (disk->flags & GENHD_FL_NATIVE_CAPACITY) == 0) { 605 (disk->flags & GENHD_FL_NATIVE_CAPACITY) == 0) {
606 printk(KERN_CONT "enabling native capacity\n"); 606 printk(KERN_CONT "enabling native capacity\n");
607 bdops->set_capacity(disk, ~0ULL); 607 bdops->unlock_native_capacity(disk);
608 disk->flags |= GENHD_FL_NATIVE_CAPACITY; 608 disk->flags |= GENHD_FL_NATIVE_CAPACITY;
609 /* free state and restart */ 609 /* free state and restart */
610 kfree(state); 610 kfree(state);