Lines Matching defs:offset
57 static void ext2_truncate_blocks(struct inode *inode, loff_t offset);
144 * return value is the path length and @offsets[n] is the offset of
356 * @blocks_to_boundary: the offset in the indirect block
803 static int ext2_iomap_begin(struct inode *inode, loff_t offset, loff_t length,
807 unsigned long first_block = offset >> blkbits;
821 iomap->offset = (u64)first_block << blkbits;
841 ext2_iomap_end(struct inode *inode, loff_t offset, loff_t length,
847 ext2_write_failed(inode->i_mapping, offset + length);
940 loff_t offset = iocb->ki_pos;
945 ext2_write_failed(mapping, offset + count);
1179 static void __ext2_truncate_blocks(struct inode *inode, loff_t offset)
1192 iblock = (offset + blocksize-1) >> EXT2_BLOCK_SIZE_BITS(inode->i_sb);
1268 static void ext2_truncate_blocks(struct inode *inode, loff_t offset)
1277 __ext2_truncate_blocks(inode, offset);
1330 unsigned long offset;
1343 * Figure out the offset within the block group inode table
1345 offset = ((ino - 1) % EXT2_INODES_PER_GROUP(sb)) * EXT2_INODE_SIZE(sb);
1347 (offset >> EXT2_BLOCK_SIZE_BITS(sb));
1352 offset &= (EXT2_BLOCK_SIZE(sb) - 1);
1353 return (struct ext2_inode *) (bh->b_data + offset);