> case IOMAP_MAPPED: > - if (offset >= i_size_read(inode)) > + if ((iomap->flags & IOMAP_F_NEW) || offset >= i_size_read(inode)) Please split the line to stay withing 80 characters. Otherwise looks fine: Reviewed-by: Christoph Hellwig <hch@xxxxxx>
> case IOMAP_MAPPED: > - if (offset >= i_size_read(inode)) > + if ((iomap->flags & IOMAP_F_NEW) || offset >= i_size_read(inode)) Please split the line to stay withing 80 characters. Otherwise looks fine: Reviewed-by: Christoph Hellwig <hch@xxxxxx>