summaryrefslogtreecommitdiff
path: root/sys/gnu
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2003-11-01 05:51:54 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2003-11-01 05:51:54 +0000
commit492c1e68fbce5744ed3df1d8dbffa0766e399ab4 (patch)
treefc32ca407dafe0c0f95d6d7b1272204d302f9100 /sys/gnu
parentbb187251fc6bf6d91d458bf8ebab32e5eb5848cb (diff)
Notes
Diffstat (limited to 'sys/gnu')
-rw-r--r--sys/gnu/ext2fs/ext2_vfsops.c3
-rw-r--r--sys/gnu/fs/ext2fs/ext2_vfsops.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/gnu/ext2fs/ext2_vfsops.c b/sys/gnu/ext2fs/ext2_vfsops.c
index c9544c163988..a9c4160ad7ce 100644
--- a/sys/gnu/ext2fs/ext2_vfsops.c
+++ b/sys/gnu/ext2fs/ext2_vfsops.c
@@ -933,8 +933,7 @@ loop:
}
if ((error = VOP_FSYNC(vp, cred, waitfor, td)) != 0)
allerror = error;
- VOP_UNLOCK(vp, 0, td);
- vrele(vp);
+ vput(vp);
mtx_lock(&mntvnode_mtx);
}
mtx_unlock(&mntvnode_mtx);
diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c
index c9544c163988..a9c4160ad7ce 100644
--- a/sys/gnu/fs/ext2fs/ext2_vfsops.c
+++ b/sys/gnu/fs/ext2fs/ext2_vfsops.c
@@ -933,8 +933,7 @@ loop:
}
if ((error = VOP_FSYNC(vp, cred, waitfor, td)) != 0)
allerror = error;
- VOP_UNLOCK(vp, 0, td);
- vrele(vp);
+ vput(vp);
mtx_lock(&mntvnode_mtx);
}
mtx_unlock(&mntvnode_mtx);