Re: [f2fs-dev] [PATCH v2] f2fs: compress: add compress_inode to cache compressed blocks

2020-11-30 Thread Chao Yu
On 2020/12/1 2:11, Eric Biggers wrote: On Fri, Nov 27, 2020 at 09:01:47AM +0800, Chao Yu wrote: On 2020/11/27 1:55, Eric Biggers wrote: On Thu, Nov 26, 2020 at 06:37:09PM +0800, Chao Yu wrote: Support to use address space of inner inode to cache compressed block, in order to improve cache hit

Re: [f2fs-dev] [PATCH v2] f2fs: compress: add compress_inode to cache compressed blocks

2020-11-30 Thread Eric Biggers
On Fri, Nov 27, 2020 at 09:01:47AM +0800, Chao Yu wrote: > On 2020/11/27 1:55, Eric Biggers wrote: > > On Thu, Nov 26, 2020 at 06:37:09PM +0800, Chao Yu wrote: > > > Support to use address space of inner inode to cache compressed block, > > > in order to improve cache hit ratio of random read. > >

Re: [f2fs-dev] [PATCH v2] f2fs: compress: add compress_inode to cache compressed blocks

2020-11-26 Thread Chao Yu
On 2020/11/27 1:55, Eric Biggers wrote: On Thu, Nov 26, 2020 at 06:37:09PM +0800, Chao Yu wrote: Support to use address space of inner inode to cache compressed block, in order to improve cache hit ratio of random read. Signed-off-by: Chao Yu If the file is also encrypted, are the compressed

Re: [f2fs-dev] [PATCH v2] f2fs: compress: add compress_inode to cache compressed blocks

2020-11-26 Thread Eric Biggers
On Thu, Nov 26, 2020 at 06:37:09PM +0800, Chao Yu wrote: > Support to use address space of inner inode to cache compressed block, > in order to improve cache hit ratio of random read. > > Signed-off-by: Chao Yu If the file is also encrypted, are the compressed pages that are cached still encrypt

[PATCH v2] f2fs: compress: add compress_inode to cache compressed blocks

2020-11-26 Thread Chao Yu
Support to use address space of inner inode to cache compressed block, in order to improve cache hit ratio of random read. Signed-off-by: Chao Yu --- v2: - don't assign a_ops with f2fs_compress_aops if F2FS_FS_COMPRESSION is not defined. - don't remove sbi variable in f2fs_do_decompress_pages().