Re: [PATCH] erofs-utils: no compression case for tail-end block in vle_write_indexes()

2021-07-22 Thread Gao Xiang
Hi Yue, On Fri, Jul 23, 2021 at 11:49:45AM +0800, Yue Hu wrote: > From: Yue Hu > > Note that count value will be always greater than EROFS_BLKSIZ when > calling erofs_compress_destsize() in vle_compress_one(). So, the d1 > always >= 1 for compressed block in vle_write_indexes(). That is to >

[PATCH] erofs-utils: no compression case for tail-end block in vle_write_indexes()

2021-07-22 Thread Yue Hu
From: Yue Hu Note that count value will be always greater than EROFS_BLKSIZ when calling erofs_compress_destsize() in vle_compress_one(). So, the d1 always >= 1 for compressed block in vle_write_indexes(). That is to say tail-end block can't be compressed. Signed-off-by: Yue Hu ---

Re: [PATCH v6] iomap: support tail packing inline read

2021-07-22 Thread Gao Xiang
Hi Darrick, On Thu, Jul 22, 2021 at 09:51:09AM -0700, Darrick J. Wong wrote: > On Thu, Jul 22, 2021 at 07:39:47AM +0200, Christoph Hellwig wrote: > > I think some of the language here is confusing - mostly about tail > > packing when we otherwise use inline data. Can you take a look at > > the

Re: [PATCH v6] iomap: support tail packing inline read

2021-07-22 Thread Matthew Wilcox
On Thu, Jul 22, 2021 at 06:53:42PM +0200, Christoph Hellwig wrote: > On Thu, Jul 22, 2021 at 09:51:09AM -0700, Darrick J. Wong wrote: > > The commit message is a little misleading -- this adds support for > > inline data pages at nonzero (but page-aligned) file offsets, not file > > offsets into

Re: [PATCH v6] iomap: support tail packing inline read

2021-07-22 Thread Christoph Hellwig
On Thu, Jul 22, 2021 at 09:51:09AM -0700, Darrick J. Wong wrote: > The commit message is a little misleading -- this adds support for > inline data pages at nonzero (but page-aligned) file offsets, not file > offsets into the page itself. I suggest: It actually adds both. pos is the offset into

Re: [PATCH v6] iomap: support tail packing inline read

2021-07-22 Thread Darrick J. Wong
On Thu, Jul 22, 2021 at 07:39:47AM +0200, Christoph Hellwig wrote: > I think some of the language here is confusing - mostly about tail > packing when we otherwise use inline data. Can you take a look at > the version below? This mostly cleans up the terminology, adds a > new helper to check the