Lines Matching refs:sqsh_ino
56 struct squashfs_base_inode *sqsh_ino) in squashfs_new_inode() argument
60 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->uid), &inode->i_uid); in squashfs_new_inode()
64 err = squashfs_get_id(sb, le16_to_cpu(sqsh_ino->guid), &inode->i_gid); in squashfs_new_inode()
68 inode->i_ino = le32_to_cpu(sqsh_ino->inode_number); in squashfs_new_inode()
69 inode->i_mtime.tv_sec = le32_to_cpu(sqsh_ino->mtime); in squashfs_new_inode()
72 inode->i_mode = le16_to_cpu(sqsh_ino->mode); in squashfs_new_inode()
138 struct squashfs_reg_inode *sqsh_ino = &squashfs_ino.reg; in squashfs_read_inode() local
140 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
141 sizeof(*sqsh_ino)); in squashfs_read_inode()
145 frag = le32_to_cpu(sqsh_ino->fragment); in squashfs_read_inode()
147 frag_offset = le32_to_cpu(sqsh_ino->offset); in squashfs_read_inode()
160 inode->i_size = le32_to_cpu(sqsh_ino->file_size); in squashfs_read_inode()
167 squashfs_i(inode)->start = le32_to_cpu(sqsh_ino->start_block); in squashfs_read_inode()
180 struct squashfs_lreg_inode *sqsh_ino = &squashfs_ino.lreg; in squashfs_read_inode() local
182 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
183 sizeof(*sqsh_ino)); in squashfs_read_inode()
187 frag = le32_to_cpu(sqsh_ino->fragment); in squashfs_read_inode()
189 frag_offset = le32_to_cpu(sqsh_ino->offset); in squashfs_read_inode()
201 inode->i_nlink = le32_to_cpu(sqsh_ino->nlink); in squashfs_read_inode()
202 inode->i_size = le64_to_cpu(sqsh_ino->file_size); in squashfs_read_inode()
206 le64_to_cpu(sqsh_ino->sparse) - 1) >> 9) + 1; in squashfs_read_inode()
211 squashfs_i(inode)->start = le64_to_cpu(sqsh_ino->start_block); in squashfs_read_inode()
222 struct squashfs_dir_inode *sqsh_ino = &squashfs_ino.dir; in squashfs_read_inode() local
224 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
225 sizeof(*sqsh_ino)); in squashfs_read_inode()
229 inode->i_nlink = le32_to_cpu(sqsh_ino->nlink); in squashfs_read_inode()
230 inode->i_size = le16_to_cpu(sqsh_ino->file_size); in squashfs_read_inode()
234 squashfs_i(inode)->start = le32_to_cpu(sqsh_ino->start_block); in squashfs_read_inode()
235 squashfs_i(inode)->offset = le16_to_cpu(sqsh_ino->offset); in squashfs_read_inode()
237 squashfs_i(inode)->parent = le32_to_cpu(sqsh_ino->parent_inode); in squashfs_read_inode()
242 le16_to_cpu(sqsh_ino->offset)); in squashfs_read_inode()
246 struct squashfs_ldir_inode *sqsh_ino = &squashfs_ino.ldir; in squashfs_read_inode() local
248 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
249 sizeof(*sqsh_ino)); in squashfs_read_inode()
253 inode->i_nlink = le32_to_cpu(sqsh_ino->nlink); in squashfs_read_inode()
254 inode->i_size = le32_to_cpu(sqsh_ino->file_size); in squashfs_read_inode()
258 squashfs_i(inode)->start = le32_to_cpu(sqsh_ino->start_block); in squashfs_read_inode()
259 squashfs_i(inode)->offset = le16_to_cpu(sqsh_ino->offset); in squashfs_read_inode()
262 squashfs_i(inode)->dir_idx_cnt = le16_to_cpu(sqsh_ino->i_count); in squashfs_read_inode()
263 squashfs_i(inode)->parent = le32_to_cpu(sqsh_ino->parent_inode); in squashfs_read_inode()
268 le16_to_cpu(sqsh_ino->offset)); in squashfs_read_inode()
273 struct squashfs_symlink_inode *sqsh_ino = &squashfs_ino.symlink; in squashfs_read_inode() local
275 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
276 sizeof(*sqsh_ino)); in squashfs_read_inode()
280 inode->i_nlink = le32_to_cpu(sqsh_ino->nlink); in squashfs_read_inode()
281 inode->i_size = le32_to_cpu(sqsh_ino->symlink_size); in squashfs_read_inode()
297 struct squashfs_dev_inode *sqsh_ino = &squashfs_ino.dev; in squashfs_read_inode() local
300 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
301 sizeof(*sqsh_ino)); in squashfs_read_inode()
309 inode->i_nlink = le32_to_cpu(sqsh_ino->nlink); in squashfs_read_inode()
310 rdev = le32_to_cpu(sqsh_ino->rdev); in squashfs_read_inode()
321 struct squashfs_ipc_inode *sqsh_ino = &squashfs_ino.ipc; in squashfs_read_inode() local
323 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
324 sizeof(*sqsh_ino)); in squashfs_read_inode()
332 inode->i_nlink = le32_to_cpu(sqsh_ino->nlink); in squashfs_read_inode()