diff options
author | mckusick <mckusick@FreeBSD.org> | 2012-03-25 00:02:37 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2012-03-25 00:02:37 +0000 |
commit | e6ce77b8ea66bba7bcb79a01ae6d6cdff763ff4f (patch) | |
tree | c6eb532f373fe63d2db8d2cd447bf0bb69ae2d21 /sys/ufs/ffs/ffs_rawread.c | |
parent | dfeac3e82445b83c514221770b5f546e26f11219 (diff) | |
download | FreeBSD-src-e6ce77b8ea66bba7bcb79a01ae6d6cdff763ff4f.zip FreeBSD-src-e6ce77b8ea66bba7bcb79a01ae6d6cdff763ff4f.tar.gz |
Add a third flags argument to ffs_syncvnode to avoid a possible conflict
with MNT_WAIT flags that passed in its second argument. This will be
MFC'ed together with r232351.
Discussed with: kib
Diffstat (limited to 'sys/ufs/ffs/ffs_rawread.c')
-rw-r--r-- | sys/ufs/ffs/ffs_rawread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_rawread.c b/sys/ufs/ffs/ffs_rawread.c index 6c30d14..f8e3e00 100644 --- a/sys/ufs/ffs/ffs_rawread.c +++ b/sys/ufs/ffs/ffs_rawread.c @@ -163,7 +163,7 @@ ffs_rawread_sync(struct vnode *vp) /* Flush dirty buffers */ if (bo->bo_dirty.bv_cnt > 0) { BO_UNLOCK(bo); - if ((error = ffs_syncvnode(vp, MNT_WAIT)) != 0) { + if ((error = ffs_syncvnode(vp, MNT_WAIT, 0)) != 0) { if (upgraded != 0) VOP_LOCK(vp, LK_DOWNGRADE); vn_finished_write(mp); |