Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc06a049 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "block: Move bdev_unhash_inode() after invalidate_partition()"

parents 2ed62e8e 3048e17e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -648,9 +648,8 @@ void del_gendisk(struct gendisk *disk)
	disk_part_iter_init(&piter, disk,
			     DISK_PITER_INCL_EMPTY | DISK_PITER_REVERSE);
	while ((part = disk_part_iter_next(&piter))) {
		bdev_unhash_inode(MKDEV(disk->major,
					disk->first_minor + part->partno));
		invalidate_partition(disk, part->partno);
		bdev_unhash_inode(part_devt(part));
		delete_partition(disk, part->partno);
	}
	disk_part_iter_exit(&piter);