/* Invalidates all buffer-cache entries on a disk. It should be called when a disk has been changed  */
static void flush_disk(struct block_device *bdev)
/* Invalidates all buffer-cache entries on a disk. It should be called when a disk has been changed  */
static void flush_disk(struct block_device *bdev)
{
	if (__invalidate_device(bdev)) {
		char name[BDEVNAME_SIZE] = "";
		if (bdev->bd_disk)
			disk_name(bdev->bd_disk, 0, name);
		printk(KERN_WARNING "VFS: busy inodes on changed media or "
		       "resized disk %s\n", name);
	}
	if (!bdev->bd_disk)
		return;
	if (disk_partitionable(bdev->bd_disk))
		bdev->bd_invalidated = 1;
}