Lines Matching full:vi

16 	struct erofs_inode *vi = EROFS_I(inode);  in erofs_read_inode()  local
32 vi->nid, PTR_ERR(kaddr)); in erofs_read_inode()
41 ifmt, vi->nid); in erofs_read_inode()
46 vi->datalayout = erofs_inode_datalayout(ifmt); in erofs_read_inode()
47 if (vi->datalayout >= EROFS_INODE_DATALAYOUT_MAX) { in erofs_read_inode()
49 vi->datalayout, vi->nid); in erofs_read_inode()
56 vi->inode_isize = sizeof(struct erofs_inode_extended); in erofs_read_inode()
58 if (*ofs + vi->inode_isize <= sb->s_blocksize) { in erofs_read_inode()
59 *ofs += vi->inode_isize; in erofs_read_inode()
64 copied = kmalloc(vi->inode_isize, GFP_NOFS); in erofs_read_inode()
74 vi->nid, PTR_ERR(kaddr)); in erofs_read_inode()
78 *ofs = vi->inode_isize - gotten; in erofs_read_inode()
82 vi->xattr_isize = erofs_xattr_ibody_size(die->i_xattr_icount); in erofs_read_inode()
89 vi->raw_blkaddr = le32_to_cpu(die->i_u.raw_blkaddr); in erofs_read_inode()
114 if (erofs_inode_is_data_compressed(vi->datalayout)) in erofs_read_inode()
116 else if (vi->datalayout == EROFS_INODE_CHUNK_BASED) in erofs_read_inode()
118 vi->chunkformat = le16_to_cpu(die->i_u.c.format); in erofs_read_inode()
123 vi->inode_isize = sizeof(struct erofs_inode_compact); in erofs_read_inode()
124 *ofs += vi->inode_isize; in erofs_read_inode()
125 vi->xattr_isize = erofs_xattr_ibody_size(dic->i_xattr_icount); in erofs_read_inode()
132 vi->raw_blkaddr = le32_to_cpu(dic->i_u.raw_blkaddr); in erofs_read_inode()
154 if (erofs_inode_is_data_compressed(vi->datalayout)) in erofs_read_inode()
156 else if (vi->datalayout == EROFS_INODE_CHUNK_BASED) in erofs_read_inode()
157 vi->chunkformat = le16_to_cpu(dic->i_u.c.format); in erofs_read_inode()
162 erofs_inode_version(ifmt), vi->nid); in erofs_read_inode()
167 if (vi->datalayout == EROFS_INODE_CHUNK_BASED) { in erofs_read_inode()
168 if (vi->chunkformat & ~EROFS_CHUNK_FORMAT_ALL) { in erofs_read_inode()
171 vi->chunkformat, vi->nid); in erofs_read_inode()
175 vi->chunkbits = sb->s_blocksize_bits + in erofs_read_inode()
176 (vi->chunkformat & EROFS_CHUNK_FORMAT_BLKBITS_MASK); in erofs_read_inode()
182 (vi->datalayout == EROFS_INODE_FLAT_PLAIN || in erofs_read_inode()
183 vi->datalayout == EROFS_INODE_CHUNK_BASED)) in erofs_read_inode()
195 inode->i_mode, vi->nid); in erofs_read_inode()
207 struct erofs_inode *vi = EROFS_I(inode); in erofs_fill_symlink() local
211 m_pofs += vi->xattr_isize; in erofs_fill_symlink()
213 if (vi->datalayout != EROFS_INODE_FLAT_INLINE || inode->i_size < 0 || in erofs_fill_symlink()
234 struct erofs_inode *vi = EROFS_I(inode); in erofs_fill_inode() local
251 if (erofs_inode_is_data_compressed(vi->datalayout)) in erofs_fill_inode()
279 if (erofs_inode_is_data_compressed(vi->datalayout)) { in erofs_fill_inode()