Lines Matching full:inode
29 struct ext2_inode *inode,
33 #define inode_bmap(inode, nr) ((inode)->i_block[(nr)])
132 errcode_t ext2fs_bmap2(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode,
150 /* Read inode structure if necessary */
151 if (!inode) {
155 inode = &inode_buf;
159 if (inode->i_flags & EXT4_EXTENTS_FL) {
163 retval = ext2fs_extent_open2(fs, ino, inode, &handle);
196 /* Update inode after setting extent */
197 retval = ext2fs_read_inode(fs, ino, inode);
217 inode_bmap(inode, block) = b;
222 *phys_blk = inode_bmap(inode, block);
223 b = block ? inode_bmap(inode, block-1) : 0;
229 inode_bmap(inode, block) = b;
240 b = inode_bmap(inode, EXT2_IND_BLOCK);
248 b = inode_bmap(inode, EXT2_IND_BLOCK-1);
252 inode_bmap(inode, EXT2_IND_BLOCK) = b;
265 b = inode_bmap(inode, EXT2_DIND_BLOCK);
273 b = inode_bmap(inode, EXT2_IND_BLOCK);
277 inode_bmap(inode, EXT2_DIND_BLOCK) = b;
289 b = inode_bmap(inode, EXT2_TIND_BLOCK);
297 b = inode_bmap(inode, EXT2_DIND_BLOCK);
301 inode_bmap(inode, EXT2_TIND_BLOCK) = b;
314 ext2fs_iblk_add_blocks(fs, inode, blocks_alloc);
315 retval = ext2fs_write_inode(fs, ino, inode);
320 errcode_t ext2fs_bmap(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode,
327 ret = ext2fs_bmap2(fs, ino, inode, block_buf, bmap_flags, block,