Lines Matching full:vip

27 vxfs_dumpi(struct vxfs_inode_info *vip, ino_t ino)  in vxfs_dumpi()  argument
36 printk(KERN_DEBUG "mode is %x\n", vip->vii_mode); in vxfs_dumpi()
38 vip->vii_nlink, vip->vii_uid, vip->vii_gid); in vxfs_dumpi()
40 vip->vii_size, vip->vii_blocks); in vxfs_dumpi()
41 printk(KERN_DEBUG "orgtype:%u\n", vip->vii_orgtype); in vxfs_dumpi()
47 * @vip: VxFS inode
54 vxfs_transmod(struct vxfs_inode_info *vip) in vxfs_transmod() argument
56 umode_t ret = vip->vii_mode & ~VXFS_TYPE_MASK; in vxfs_transmod()
58 if (VXFS_ISFIFO(vip)) in vxfs_transmod()
60 if (VXFS_ISCHR(vip)) in vxfs_transmod()
62 if (VXFS_ISDIR(vip)) in vxfs_transmod()
64 if (VXFS_ISBLK(vip)) in vxfs_transmod()
66 if (VXFS_ISLNK(vip)) in vxfs_transmod()
68 if (VXFS_ISREG(vip)) in vxfs_transmod()
70 if (VXFS_ISSOC(vip)) in vxfs_transmod()
77 struct vxfs_inode_info *vip, struct vxfs_dinode *dip) in dip2vip_cpy() argument
79 struct inode *inode = &vip->vfs_inode; in dip2vip_cpy()
81 vip->vii_mode = fs32_to_cpu(sbi, dip->vdi_mode); in dip2vip_cpy()
82 vip->vii_nlink = fs32_to_cpu(sbi, dip->vdi_nlink); in dip2vip_cpy()
83 vip->vii_uid = fs32_to_cpu(sbi, dip->vdi_uid); in dip2vip_cpy()
84 vip->vii_gid = fs32_to_cpu(sbi, dip->vdi_gid); in dip2vip_cpy()
85 vip->vii_size = fs64_to_cpu(sbi, dip->vdi_size); in dip2vip_cpy()
86 vip->vii_atime = fs32_to_cpu(sbi, dip->vdi_atime); in dip2vip_cpy()
87 vip->vii_autime = fs32_to_cpu(sbi, dip->vdi_autime); in dip2vip_cpy()
88 vip->vii_mtime = fs32_to_cpu(sbi, dip->vdi_mtime); in dip2vip_cpy()
89 vip->vii_mutime = fs32_to_cpu(sbi, dip->vdi_mutime); in dip2vip_cpy()
90 vip->vii_ctime = fs32_to_cpu(sbi, dip->vdi_ctime); in dip2vip_cpy()
91 vip->vii_cutime = fs32_to_cpu(sbi, dip->vdi_cutime); in dip2vip_cpy()
92 vip->vii_orgtype = dip->vdi_orgtype; in dip2vip_cpy()
94 vip->vii_blocks = fs32_to_cpu(sbi, dip->vdi_blocks); in dip2vip_cpy()
95 vip->vii_gen = fs32_to_cpu(sbi, dip->vdi_gen); in dip2vip_cpy()
97 if (VXFS_ISDIR(vip)) in dip2vip_cpy()
98 vip->vii_dotdot = fs32_to_cpu(sbi, dip->vdi_dotdot); in dip2vip_cpy()
99 else if (!VXFS_ISREG(vip) && !VXFS_ISLNK(vip)) in dip2vip_cpy()
100 vip->vii_rdev = fs32_to_cpu(sbi, dip->vdi_rdev); in dip2vip_cpy()
103 memcpy(&vip->vii_org, &dip->vdi_org, sizeof(vip->vii_org)); in dip2vip_cpy()
105 inode->i_mode = vxfs_transmod(vip); in dip2vip_cpy()
106 i_uid_write(inode, (uid_t)vip->vii_uid); in dip2vip_cpy()
107 i_gid_write(inode, (gid_t)vip->vii_gid); in dip2vip_cpy()
109 set_nlink(inode, vip->vii_nlink); in dip2vip_cpy()
110 inode->i_size = vip->vii_size; in dip2vip_cpy()
112 inode_set_atime(inode, vip->vii_atime, 0); in dip2vip_cpy()
113 inode_set_ctime(inode, vip->vii_ctime, 0); in dip2vip_cpy()
114 inode_set_mtime(inode, vip->vii_mtime, 0); in dip2vip_cpy()
116 inode->i_blocks = vip->vii_blocks; in dip2vip_cpy()
117 inode->i_generation = vip->vii_gen; in dip2vip_cpy()
153 struct vxfs_inode_info *vip = VXFS_INO(inode); in vxfs_blkiget() local
157 dip2vip_cpy(VXFS_SBI(sbp), vip, dip); in vxfs_blkiget()
158 vip->vfs_inode.i_mapping->a_ops = &vxfs_aops; in vxfs_blkiget()
160 vxfs_dumpi(vip, ino); in vxfs_blkiget()
175 * @vip: VxFS inode to fill in
184 __vxfs_iget(struct inode *ilistp, struct vxfs_inode_info *vip, ino_t ino) in __vxfs_iget() argument
197 dip2vip_cpy(VXFS_SBI(ilistp->i_sb), vip, dip); in __vxfs_iget()
198 vip->vfs_inode.i_mapping->a_ops = &vxfs_aops; in __vxfs_iget()
200 vxfs_dumpi(vip, ino); in __vxfs_iget()
253 struct vxfs_inode_info *vip; in vxfs_iget() local
264 vip = VXFS_INO(ip); in vxfs_iget()
265 error = __vxfs_iget(VXFS_SBI(sbp)->vsi_ilist, vip, ino); in vxfs_iget()
271 if (VXFS_ISIMMED(vip)) in vxfs_iget()
284 if (!VXFS_ISIMMED(vip)) { in vxfs_iget()
290 ip->i_link = vip->vii_immed.vi_immed; in vxfs_iget()
292 sizeof(vip->vii_immed.vi_immed) - 1); in vxfs_iget()
295 init_special_inode(ip, ip->i_mode, old_decode_dev(vip->vii_rdev)); in vxfs_iget()