diff options
author | phk <phk@FreeBSD.org> | 2004-03-11 16:33:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-03-11 16:33:11 +0000 |
commit | eeb7579130ee3380d0348cb447d9c484c6c4b45e (patch) | |
tree | 208435a2d9319871f8e0f6d3c8d389050ba3446e /sys/gnu/fs | |
parent | b4f24d501388e451effb83554929f95bd6883301 (diff) | |
download | FreeBSD-src-eeb7579130ee3380d0348cb447d9c484c6c4b45e.zip FreeBSD-src-eeb7579130ee3380d0348cb447d9c484c6c4b45e.tar.gz |
Remove unused second arg to vfinddev().
Don't call addaliasu() on VBLK nodes.
Diffstat (limited to 'sys/gnu/fs')
-rw-r--r-- | sys/gnu/fs/ext2fs/ext2_vnops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_vnops.c b/sys/gnu/fs/ext2fs/ext2_vnops.c index f08c1ad..d7e1659 100644 --- a/sys/gnu/fs/ext2fs/ext2_vnops.c +++ b/sys/gnu/fs/ext2fs/ext2_vnops.c @@ -1750,9 +1750,11 @@ ext2_vinit(mntp, specops, fifoops, vpp) vp = *vpp; ip = VTOI(vp); switch(vp->v_type = IFTOVT(ip->i_mode)) { - case VCHR: case VBLK: vp->v_op = specops; + break; + case VCHR: + vp->v_op = specops; vp = addaliasu(vp, ip->i_rdev); ip->i_vnode = vp; break; |