mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
NO_GEOM cleanup: retire disk_invalidate()
This commit is contained in:
parent
6e1203e558
commit
1686ac18f9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110116
|
@ -567,7 +567,6 @@ daopen(dev_t dev, int flags __unused, int fmt __unused, struct thread *td __unus
|
|||
|
||||
if ((softc->flags & DA_FLAG_PACK_INVALID) != 0) {
|
||||
/* Invalidate our pack information. */
|
||||
disk_invalidate(&softc->disk);
|
||||
softc->flags &= ~DA_FLAG_PACK_INVALID;
|
||||
}
|
||||
splx(s);
|
||||
|
|
|
@ -254,7 +254,6 @@ ad_detach(struct ata_device *atadev, int flush) /* get rid of flush XXX SOS */
|
|||
bioq_remove(&adp->queue, bp);
|
||||
biofinish(bp, NULL, ENXIO);
|
||||
}
|
||||
disk_invalidate(&adp->disk);
|
||||
disk_destroy(adp->dev);
|
||||
devstat_remove_entry(&adp->stats);
|
||||
if (flush) {
|
||||
|
|
|
@ -406,7 +406,6 @@ ata_raid_delete(int array)
|
|||
ar_promise_write_conf(rdp);
|
||||
else
|
||||
ar_highpoint_write_conf(rdp);
|
||||
disk_invalidate(&rdp->disk);
|
||||
disk_destroy(rdp->dev);
|
||||
free(rdp, M_AR);
|
||||
ar_table[array] = NULL;
|
||||
|
|
|
@ -125,7 +125,6 @@ afddetach(struct ata_device *atadev)
|
|||
bioq_remove(&fdp->queue, bp);
|
||||
biofinish(bp, NULL, ENXIO);
|
||||
}
|
||||
disk_invalidate(&fdp->disk);
|
||||
disk_destroy(fdp->dev);
|
||||
devstat_remove_entry(&fdp->stats);
|
||||
ata_free_name(atadev);
|
||||
|
|
|
@ -294,11 +294,6 @@ disk_destroy(dev_t dev)
|
|||
g_orphan_provider(LIST_FIRST(&gp->provider), ENXIO);
|
||||
}
|
||||
|
||||
void
|
||||
disk_invalidate (struct disk *disk)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
g_kern_disks(void *p)
|
||||
{
|
||||
|
|
|
@ -43,7 +43,6 @@ dev_t disk_create(int unit, struct disk *disk, int flags, struct cdevsw *cdevsw,
|
|||
void disk_destroy(dev_t dev);
|
||||
struct disk *disk_enumerate(struct disk *disk);
|
||||
void disk_err(struct bio *bp, const char *what, int blkdone, int nl);
|
||||
void disk_invalidate(struct disk *disk);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue