Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110520
b: refs/heads/master
c: 9bc3ffb
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Patterson authored and Jens Axboe committed Oct 9, 2008
1 parent 3fef7d5 commit 4132f11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c3279d1454cdfed02a557d789d8a6d08ab4cbe70
refs/heads/master: 9bc3ffbfbdf71fefda8a261ef8d6fdc388a29b42
3 changes: 2 additions & 1 deletion trunk/fs/partitions/check.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,6 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev)
res = invalidate_partition(disk, 0);
if (res)
return res;
bdev->bd_invalidated = 0;

disk_part_iter_init(&piter, disk, DISK_PITER_INCL_EMPTY);
while ((part = disk_part_iter_next(&piter)))
Expand All @@ -513,6 +512,8 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev)

if (disk->fops->revalidate_disk)
disk->fops->revalidate_disk(disk);
check_disk_size_change(disk, bdev);
bdev->bd_invalidated = 0;
if (!get_capacity(disk) || !(state = check_partition(disk, bdev)))
return 0;
if (IS_ERR(state)) /* I/O error reading the partition table */
Expand Down

0 comments on commit 4132f11

Please sign in to comment.