Get even closer to not crashing ext2fs

This commit is contained in:
Poul-Henning Kamp 2004-11-06 18:24:33 +00:00
parent 057b5a5e38
commit d4cfa2b5e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137321
4 changed files with 2 additions and 4 deletions

View File

@ -54,7 +54,6 @@ struct ext2mount {
u_long um_bptrtodb; /* indir ptr to disk block */
u_long um_seqinc; /* inc between seq blocks */
struct g_geom *um_gp;
struct g_consumer *um_cp;
struct bufobj *um_bo;
};

View File

@ -808,7 +808,7 @@ ext2_unmount(mp, mntflags, td)
DROP_GIANT();
g_topology_lock();
g_wither_geom_close(ump->um_gp, ENXIO);
g_wither_geom_close(ump->um_cp->geom, ENXIO);
g_topology_unlock();
PICKUP_GIANT();
vrele(ump->um_devvp);

View File

@ -54,7 +54,6 @@ struct ext2mount {
u_long um_bptrtodb; /* indir ptr to disk block */
u_long um_seqinc; /* inc between seq blocks */
struct g_geom *um_gp;
struct g_consumer *um_cp;
struct bufobj *um_bo;
};

View File

@ -808,7 +808,7 @@ ext2_unmount(mp, mntflags, td)
DROP_GIANT();
g_topology_lock();
g_wither_geom_close(ump->um_gp, ENXIO);
g_wither_geom_close(ump->um_cp->geom, ENXIO);
g_topology_unlock();
PICKUP_GIANT();
vrele(ump->um_devvp);