mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 08:43:23 +00:00
Revert part of my bioops change which implemented panic(8).
This commit is contained in:
parent
7523681895
commit
7c50d77218
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61730
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user