Lines Matching refs:i_size
571 while (offset < inode->i_size) { in find_dir_entry()
616 while (read < nbytes && offset < inode->i_size) { in ext2_inode_read()
627 uint32_t left_in_file = inode->i_size - offset; in ext2_inode_read()
654 inode->i_id, block, offset, offset + nbytes, inode->i_size); in ext2_inode_write()
679 if (offset + written > inode->i_size) { in ext2_inode_write()
680 LOG_DBG("New inode size: %d -> %zd", inode->i_size, offset + written); in ext2_inode_write()
681 inode->i_size = offset + written; in ext2_inode_write()
699 uint32_t old_size = inode->i_size; in ext2_inode_trunc()
757 inode->i_size = new_size; in ext2_inode_trunc()
759 LOG_DBG("New inode size: %d (blocks: %d)", inode->i_size, inode->i_blocks); in ext2_inode_trunc()
803 if (dir->f_off >= dir->f_inode->i_size) { in ext2_get_direntry()
857 size = inode->i_size; in ext2_get_direntry()
888 inode->i_size = 0; in ext2_create_inode()
949 int last_blk = (dir->i_size / block_size) - 1; in ext2_add_direntry()
994 dir->i_size += block_size; in ext2_add_direntry()
1069 new_inode->i_size = block_size; in ext2_create_dir()
1161 uint32_t last_blk = parent->i_size / block_size - 1; in ext2_del_direntry()
1273 if (offset == block_size && inode->i_size == block_size) { in can_unlink()