Revert part of my bioops change which implemented panic(8).

This commit is contained in:
Poul-Henning Kamp 2000-06-16 14:32:13 +00:00
parent 7523681895
commit 7c50d77218
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61730
3 changed files with 6 additions and 2 deletions

View File

@ -2546,6 +2546,9 @@ fsync(p, uap)
if (vp->v_object)
vm_object_page_clean(vp->v_object, 0, 0, 0);
error = VOP_FSYNC(vp, fp->f_cred, MNT_WAIT, p);
if (error == 0 && vp->v_mount && (vp->v_mount->mnt_flag & MNT_SOFTDEP))
error = softdep_fsync(vp);
VOP_UNLOCK(vp, 0, p);
return (error);
}

View File

@ -2546,6 +2546,9 @@ fsync(p, uap)
if (vp->v_object)
vm_object_page_clean(vp->v_object, 0, 0, 0);
error = VOP_FSYNC(vp, fp->f_cred, MNT_WAIT, p);
if (error == 0 && vp->v_mount && (vp->v_mount->mnt_flag & MNT_SOFTDEP))
error = softdep_fsync(vp);
VOP_UNLOCK(vp, 0, p);
return (error);
}

View File

@ -279,7 +279,5 @@ loop:
}
splx(s);
error = UFS_UPDATE(vp, wait);
if (error == 0 && vp->v_mount && (vp->v_mount->mnt_flag & MNT_SOFTDEP))
error = softdep_fsync(vp);
return (error);
}