Lines Matching refs:vip
66 vxfs_dumpi(struct vxfs_inode_info *vip, ino_t ino) in vxfs_dumpi() argument
75 printk(KERN_DEBUG "mode is %x\n", vip->vii_mode); in vxfs_dumpi()
77 vip->vii_nlink, vip->vii_uid, vip->vii_gid); in vxfs_dumpi()
79 vip->vii_size, vip->vii_blocks); in vxfs_dumpi()
80 printk(KERN_DEBUG "orgtype:%u\n", vip->vii_orgtype); in vxfs_dumpi()
112 struct vxfs_inode_info *vip; in vxfs_blkiget() local
115 if (!(vip = kmem_cache_alloc(vxfs_inode_cachep, SLAB_KERNEL))) in vxfs_blkiget()
118 memcpy(vip, dip, sizeof(*vip)); in vxfs_blkiget()
120 vxfs_dumpi(vip, ino); in vxfs_blkiget()
123 return (vip); in vxfs_blkiget()
153 struct vxfs_inode_info *vip; in __vxfs_iget() local
157 if (!(vip = kmem_cache_alloc(vxfs_inode_cachep, SLAB_KERNEL))) in __vxfs_iget()
160 memcpy(vip, dip, sizeof(*vip)); in __vxfs_iget()
162 vxfs_dumpi(vip, ino); in __vxfs_iget()
165 return (vip); in __vxfs_iget()
202 vxfs_transmod(struct vxfs_inode_info *vip) in vxfs_transmod() argument
204 mode_t ret = vip->vii_mode & ~VXFS_TYPE_MASK; in vxfs_transmod()
206 if (VXFS_ISFIFO(vip)) in vxfs_transmod()
208 if (VXFS_ISCHR(vip)) in vxfs_transmod()
210 if (VXFS_ISDIR(vip)) in vxfs_transmod()
212 if (VXFS_ISBLK(vip)) in vxfs_transmod()
214 if (VXFS_ISLNK(vip)) in vxfs_transmod()
216 if (VXFS_ISREG(vip)) in vxfs_transmod()
218 if (VXFS_ISSOC(vip)) in vxfs_transmod()
234 vxfs_iinit(struct inode *ip, struct vxfs_inode_info *vip) in vxfs_iinit() argument
237 ip->i_mode = vxfs_transmod(vip); in vxfs_iinit()
238 ip->i_uid = (uid_t)vip->vii_uid; in vxfs_iinit()
239 ip->i_gid = (gid_t)vip->vii_gid; in vxfs_iinit()
241 ip->i_nlink = vip->vii_nlink; in vxfs_iinit()
242 ip->i_size = vip->vii_size; in vxfs_iinit()
244 ip->i_atime = vip->vii_atime; in vxfs_iinit()
245 ip->i_ctime = vip->vii_ctime; in vxfs_iinit()
246 ip->i_mtime = vip->vii_mtime; in vxfs_iinit()
249 ip->i_blocks = vip->vii_blocks; in vxfs_iinit()
250 ip->i_generation = vip->vii_gen; in vxfs_iinit()
252 ip->u.generic_ip = (void *)vip; in vxfs_iinit()
267 vxfs_get_fake_inode(struct super_block *sbp, struct vxfs_inode_info *vip) in vxfs_get_fake_inode() argument
272 vxfs_iinit(ip, vip); in vxfs_get_fake_inode()
303 struct vxfs_inode_info *vip; in vxfs_read_inode() local
307 if (!(vip = __vxfs_iget(ino, VXFS_SBI(sbp)->vsi_ilist))) in vxfs_read_inode()
310 vxfs_iinit(ip, vip); in vxfs_read_inode()
312 if (VXFS_ISIMMED(vip)) in vxfs_read_inode()
325 if (!VXFS_ISIMMED(vip)) { in vxfs_read_inode()
331 init_special_inode(ip, ip->i_mode, vip->vii_rdev); in vxfs_read_inode()