diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-07-28 20:21:04 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-07-28 20:21:04 +0000 |
| commit | d634f693166bbd2aa258c0180cb79dc397978c08 (patch) | |
| tree | bb9b337be34857e1f2678255e52c991d2c62a0a3 /sys/gnu | |
| parent | 56e0670fdc7a52b9984a90f6a748ba010c0b79aa (diff) | |
Notes
Diffstat (limited to 'sys/gnu')
| -rw-r--r-- | sys/gnu/ext2fs/ext2_vfsops.c | 3 | ||||
| -rw-r--r-- | sys/gnu/fs/ext2fs/ext2_vfsops.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/gnu/ext2fs/ext2_vfsops.c b/sys/gnu/ext2fs/ext2_vfsops.c index b68823686471e..73207d5a2d124 100644 --- a/sys/gnu/ext2fs/ext2_vfsops.c +++ b/sys/gnu/ext2fs/ext2_vfsops.c @@ -117,6 +117,7 @@ ext2_mountroot() { struct ext2_sb_info *fs; struct mount *mp; + struct vnode *rootvp; struct thread *td = curthread; struct ext2mount *ump; u_int size; @@ -642,7 +643,7 @@ ext2_mountfs(devvp, mp, td) */ if ((error = vfs_mountedon(devvp)) != 0) return (error); - if (vcount(devvp) > 1 && devvp != rootvp) + 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); diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c index b68823686471e..73207d5a2d124 100644 --- a/sys/gnu/fs/ext2fs/ext2_vfsops.c +++ b/sys/gnu/fs/ext2fs/ext2_vfsops.c @@ -117,6 +117,7 @@ ext2_mountroot() { struct ext2_sb_info *fs; struct mount *mp; + struct vnode *rootvp; struct thread *td = curthread; struct ext2mount *ump; u_int size; @@ -642,7 +643,7 @@ ext2_mountfs(devvp, mp, td) */ if ((error = vfs_mountedon(devvp)) != 0) return (error); - if (vcount(devvp) > 1 && devvp != rootvp) + 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); |
