summaryrefslogtreecommitdiffstats
path: root/sys/gnu/fs/reiserfs/reiserfs_vfsops.c
diff options
context:
space:
mode:
authorssouhlal <ssouhlal@FreeBSD.org>2005-09-03 20:23:41 +0000
committerssouhlal <ssouhlal@FreeBSD.org>2005-09-03 20:23:41 +0000
commit5ea64800e11afe3896814e88b7bf7975800b5000 (patch)
treee7358d5e6b1108dc93a692e869b9e13e75eb2535 /sys/gnu/fs/reiserfs/reiserfs_vfsops.c
parent516e4da61f61ff79186706603c0f53e3362bab9f (diff)
downloadFreeBSD-src-5ea64800e11afe3896814e88b7bf7975800b5000.zip
FreeBSD-src-5ea64800e11afe3896814e88b7bf7975800b5000.tar.gz
Unbreak hpfs/ntfs/udf/ext2fs/reiserfs mounting.
Another pointyhat to: ssouhlal
Diffstat (limited to 'sys/gnu/fs/reiserfs/reiserfs_vfsops.c')
-rw-r--r--sys/gnu/fs/reiserfs/reiserfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/gnu/fs/reiserfs/reiserfs_vfsops.c b/sys/gnu/fs/reiserfs/reiserfs_vfsops.c
index 0acaf44..db95112 100644
--- a/sys/gnu/fs/reiserfs/reiserfs_vfsops.c
+++ b/sys/gnu/fs/reiserfs/reiserfs_vfsops.c
@@ -142,7 +142,8 @@ reiserfs_mount(struct mount *mp, struct thread *td)
error = reiserfs_mountfs(devvp, mp, td);
} else {
/* TODO Handle MNT_UPDATE */
- error = (EOPNOTSUPP);
+ vput(devvp);
+ return (EOPNOTSUPP);
}
if (error) {
@@ -471,7 +472,6 @@ reiserfs_mountfs(struct vnode *devvp, struct mount *mp, struct thread *td)
if (vcount(devvp) > 1)
return (EBUSY);
- vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, td);
error = vinvalbuf(devvp, V_SAVE, td->td_ucred, td, 0, 0);
if (error) {
VOP_UNLOCK(devvp, 0, td);
OpenPOWER on IntegriCloud