diff options
| author | Martin Cracauer <cracauer@FreeBSD.org> | 2005-12-29 21:32:06 +0000 |
|---|---|---|
| committer | Martin Cracauer <cracauer@FreeBSD.org> | 2005-12-29 21:32:06 +0000 |
| commit | b50172a9abaef5cd1d84fc9b8103b2c3f16f2121 (patch) | |
| tree | b06ce813250d4ca399d6bc2a2f1ebf4159d638e0 /sys/gnu | |
| parent | e7e579f23bdb9042831709c3639bf28e65a51ce5 (diff) | |
Notes
Diffstat (limited to 'sys/gnu')
| -rw-r--r-- | sys/gnu/fs/ext2fs/ext2_vnops.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_vnops.c b/sys/gnu/fs/ext2fs/ext2_vnops.c index 4a8482e9145a..c755f66ed2f6 100644 --- a/sys/gnu/fs/ext2fs/ext2_vnops.c +++ b/sys/gnu/fs/ext2fs/ext2_vnops.c @@ -235,10 +235,6 @@ ext2_create(ap) return (0); } -/* - * Open called. - */ - static int ext2_open(ap) struct vop_open_args /* { @@ -248,8 +244,6 @@ ext2_open(ap) struct thread *a_td; } */ *ap; { - struct vnode *vp = ap->a_vp; - struct inode *ip = VTOI(vp); if (ap->a_vp->v_type == VBLK || ap->a_vp->v_type == VCHR) return (EOPNOTSUPP); @@ -261,7 +255,7 @@ ext2_open(ap) (ap->a_mode & (FWRITE | O_APPEND)) == FWRITE) return (EPERM); - vnode_create_vobject(ap->a_vp, ip->i_size, ap->a_td); + vnode_create_vobject(ap->a_vp, VTOI(ap->a_vp)->i_size, ap->a_td); return (0); } |
