[f2fs-dev] [SPAM] Re: Can we discuss?

2021-07-23 Thread FWS BHC
I want to discuss a business with you. I am having your business complementary card. Can we discuss? We are politician and we don't have time to invest. we are willing to invest $10 Million to $50 million in area of Investment interest: Oil & Gas, Agriculture, Aviation, Tourism, Retail, Real Es

Re: [f2fs-dev] [PATCH v3] f2fs: change fiemap way in printing compression chunk

2021-07-23 Thread Jaegeuk Kim
On 07/23, Daeho Jeong wrote: > From: Daeho Jeong > > When we print out a discontinuous compression chunk, it shows like a > continuous chunk now. To show it more correctly, I've changed the way of > printing fiemap info like below. Plus, eliminated NEW_ADDR(-1) in fiemap > info, since it is not i

Re: [f2fs-dev] [PATCH v9 5/9] block: Make bio_iov_iter_get_pages() respect bio_required_sector_alignment()

2021-07-23 Thread Eric Biggers
On Fri, Jun 04, 2021 at 09:09:04PM +, Satya Tangirala wrote: > Previously, bio_iov_iter_get_pages() wasn't used with bios that could have > an encryption context. However, direct I/O support using blk-crypto > introduces this possibility, so this function must now respect > bio_required_sector_

Re: [f2fs-dev] [PATCH v9 3/9] fscrypt: add functions for direct I/O support

2021-07-23 Thread Eric Biggers
On Fri, Jun 04, 2021 at 09:09:02PM +, Satya Tangirala wrote: > +bool fscrypt_dio_supported(struct kiocb *iocb, struct iov_iter *iter) > +{ > + const struct inode *inode = file_inode(iocb->ki_filp); > + const unsigned int blocksize = i_blocksize(inode); > + > + /* If the file is unen

Re: [f2fs-dev] [PATCH v3] f2fs: change fiemap way in printing compression chunk

2021-07-23 Thread Eric Biggers
On Fri, Jul 23, 2021 at 12:49:28AM -0700, Daeho Jeong wrote: > From: Daeho Jeong > > When we print out a discontinuous compression chunk, it shows like a > continuous chunk now. To show it more correctly, I've changed the way of > printing fiemap info like below. Plus, eliminated NEW_ADDR(-1) in

[f2fs-dev] [PATCH v1] f2fs: compress: reduce one page array alloc and free when write compressed page

2021-07-23 Thread Fengnan Chang
Don't alloc new page array to replace old, just use old page array, try to reduce one page array alloc and free when write compress page. Signed-off-by: Fengnan Chang --- fs/f2fs/compress.c | 18 -- fs/f2fs/f2fs.h | 1 + 2 files changed, 5 insertions(+), 14 deletions(-) dif

Re: [f2fs-dev] [RFC PATCH] f2fs: compress: reduce one page array alloc and free when write compressed page

2021-07-23 Thread Fengnan Chang
ok, it seems there is one place was missed. Thanks. On 2021/7/23 13:26, Chao Yu wrote: On 2021/7/23 11:52, Fengnan Chang wrote: Sorry, I didn't get your point, in my opinion, new_nr_cpages should always little than nr_cpages, is this right? So we can just use cpages, don't need to alloc new o

Re: [f2fs-dev] [PATCH 6/9] f2fs: implement iomap operations

2021-07-23 Thread Eric Biggers
On Fri, Jul 23, 2021 at 06:00:03AM +0100, Christoph Hellwig wrote: > On Thu, Jul 22, 2021 at 06:52:33PM -0700, Eric Biggers wrote: > > I am trying to do this, but unfortunately I don't see a way to make it work > > correctly in all cases. > > > > The main problem is that when iomap_dio_rw() return

[f2fs-dev] [PATCH v2 2/2] f2fs: use iomap for direct I/O

2021-07-23 Thread Eric Biggers
From: Eric Biggers Make f2fs_file_read_iter() and f2fs_file_write_iter() use the iomap direct I/O implementation instead of the fs/direct-io.c one. The iomap implementation is more efficient, and it also avoids the need to add new features and optimizations to the old implementation. This new i

[f2fs-dev] [PATCH v2 0/2] f2fs: use iomap for direct I/O

2021-07-23 Thread Eric Biggers
This series makes f2fs use the iomap direct I/O implementation instead of the fs/direct-io.c one. In order to do this, it adds f2fs_iomap_ops, since this is the first use of iomap in f2fs. The iomap direct I/O implementation is more efficient than fs/direct-io.c. Switching to iomap also avoids t

[f2fs-dev] [PATCH v2 1/2] f2fs: implement iomap operations

2021-07-23 Thread Eric Biggers
From: Eric Biggers Implement 'struct iomap_ops' for f2fs, in preparation for making f2fs use iomap for direct I/O. Note that this may be used for other things besides direct I/O in the future; however, for now I've only tested it for direct I/O. Signed-off-by: Eric Biggers --- fs/f2fs/Kconfig

[f2fs-dev] [PATCH v3] f2fs: change fiemap way in printing compression chunk

2021-07-23 Thread Daeho Jeong
From: Daeho Jeong When we print out a discontinuous compression chunk, it shows like a continuous chunk now. To show it more correctly, I've changed the way of printing fiemap info like below. Plus, eliminated NEW_ADDR(-1) in fiemap info, since it is not in fiemap user api manual. Let's assume 1