[PATCH] erofs-utils: generate preallocated extents for tarerofs

Jingbo Xu jefflexu at linux.alibaba.com
Tue Aug 1 12:52:04 AEST 2023



On 7/29/23 9:32 PM, Gao Xiang wrote:
>  
> -int erofs_blob_remap(struct erofs_sb_info *sbi)
> +int tarerofs_write_chunk_data(struct erofs_inode *inode, erofs_off_t data_offset)
> +{
> +	struct erofs_sb_info *sbi = inode->sbi;
> +	unsigned int chunkbits = ilog2(inode->i_size - 1) + 1;

What if inode->i_size is 0 ?


-- 
Thanks,
Jingbo


More information about the Linux-erofs mailing list