Changeset View
Changeset View
Standalone View
Standalone View
head/sys/fs/ext2fs/ext2_vfsops.c
Show First 20 Lines • Show All 1,157 Lines • ▼ Show 20 Lines | |||||
ext2_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp) | ext2_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp) | ||||
{ | { | ||||
struct m_ext2fs *fs; | struct m_ext2fs *fs; | ||||
struct inode *ip; | struct inode *ip; | ||||
struct ext2mount *ump; | struct ext2mount *ump; | ||||
struct buf *bp; | struct buf *bp; | ||||
struct vnode *vp; | struct vnode *vp; | ||||
struct thread *td; | struct thread *td; | ||||
int i, error; | unsigned int i, used_blocks; | ||||
int used_blocks; | int error; | ||||
td = curthread; | td = curthread; | ||||
error = vfs_hash_get(mp, ino, flags, td, vpp, NULL, NULL); | error = vfs_hash_get(mp, ino, flags, td, vpp, NULL, NULL); | ||||
if (error || *vpp != NULL) | if (error || *vpp != NULL) | ||||
return (error); | return (error); | ||||
ump = VFSTOEXT2(mp); | ump = VFSTOEXT2(mp); | ||||
ip = malloc(sizeof(struct inode), M_EXT2NODE, M_WAITOK | M_ZERO); | ip = malloc(sizeof(struct inode), M_EXT2NODE, M_WAITOK | M_ZERO); | ||||
▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines |