Lines Matching refs:inode
301 struct ext4_inode *inode = get_inode(EXT4_RESIZE_INO);
302 if (inode == NULL) {
303 error("failed to get resize inode");
320 inode_attach_resize(inode, reserve_inode_alloc);
322 inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR;
323 inode->i_links_count = 1;
328 /* Allocate the blocks to hold a journal inode and connect them to the
329 reserved journal inode */
332 struct ext4_inode *inode = get_inode(EXT4_JOURNAL_INO);
333 if (inode == NULL) {
334 error("failed to get journal inode");
338 u8 *journal_data = inode_allocate_data_extents(inode,
346 inode->i_mode = S_IFREG | S_IRUSR | S_IWUSR;
347 inode->i_links_count = 1;
358 memcpy(aux_info.sb->s_jnl_blocks, &inode->i_block, sizeof(inode->i_block));