[f2fs-dev] [PATCH RFC v3] mkfs.f2fs: binary decision to calculate SIT/NAT/SSA

2018-01-10 Thread Gaoxiang (OS)
Use binary decision approach to calculate SIT/NAT/SSA segments it has some benefits when the partition size >= 512G. (bsearch) psize main_segments main_seaments ... 512G261509 261510 1 T523141 523143 2 T1046405 1046409 4 T

Re: [f2fs-dev] [PATCH v2] f2fs: handle newly created page when revoking inmem pages

2018-01-10 Thread Yunlong Song
Should it be "When committing inmem pages is not successful" ? On 2018/1/11 8:17, Daeho Jeong wrote: When committing inmem pages is successful, we revoke already committed blocks in __revoke_inmem_pages() and finally replace the committed ones with the old blocks using f2fs_replace_block().

[f2fs-dev] [PATCH v3 RESEND] f2fs: support F2FS_IOC_PRECACHE_EXTENTS

2018-01-10 Thread Chao Yu
This patch introduces a new ioctl F2FS_IOC_PRECACHE_EXTENTS to precache extent info like ext4, in order to gain better performance during triggering AIO by eliminating synchronous waiting of mapping info. Referred commit: 7869a4a6c5ca ("ext4: add support for extent pre-caching") In addition,

[f2fs-dev] [PATCH v3 RESEND] f2fs: support FIEMAP_FLAG_XATTR

2018-01-10 Thread Chao Yu
This patch enables ->fiemap to handle FIEMAP_FLAG_XATTR flag for xattr mapping info lookup purpose. It makes f2fs passing generic/425 test in fstest. Signed-off-by: Chao Yu --- fs/f2fs/data.c | 69 +- 1 file changed,

[f2fs-dev] [PATCH v2] f2fs: fix to cover f2fs_inline_data_fiemap with inode_lock

2018-01-10 Thread Chao Yu
This patch fix to cover f2fs_inline_data_fiemap with inode_lock in order to make that interface avoiding race with mapping change. Signed-off-by: Chao Yu --- v2: - change to just cover inode lock for f2fs_inline_data_fiemap fs/f2fs/data.c | 6 +++--- 1 file changed, 3

[f2fs-dev] [PATCH v2] f2fs: check node page again in write end io

2018-01-10 Thread Yunlei He
Check node page again in write end io in case of data corruption during inflght IO. Signed-off-by: Yunlei He --- fs/f2fs/data.c | 4 1 file changed, 4 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 72d5d36..3de6c67 100644 --- a/fs/f2fs/data.c +++

Re: [f2fs-dev] [PATCH v2 1/4] f2fs: support F2FS_IOC_PRECACHE_EXTENTS

2018-01-10 Thread Chao Yu
On 2018/1/11 13:16, Jaegeuk Kim wrote: > On 01/11, Chao Yu wrote: >> On 2018/1/11 3:24, Jaegeuk Kim wrote: >>> On 01/10, Chao Yu wrote: This patch introduces a new ioctl F2FS_IOC_PRECACHE_EXTENTS to precache extent info like ext4, in order to gain better performance during

Re: [f2fs-dev] [PATCH] f2fs: check node page again in write end io

2018-01-10 Thread Jaegeuk Kim
On 01/10, Yunlei He wrote: > Check node page again in write end io in case of > data corruption during inflght IO. > > Signed-off-by: Yunlei He > --- > fs/f2fs/data.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c > index

[f2fs-dev] [PATCH] f2fs: avoid hungtask when gc encrypted block if io_bits is set

2018-01-10 Thread Sheng Yong
When io_bits is set, gc encrypted block may trigger the following hungtask. Since io_bits requires aligned block address, f2fs_submit_page_write may return -EAGAIN if new_blkaddr does not satisify io_bits alignment. So let's try to alloc new block address to make sure encrypted page could be

[f2fs-dev] [PATCH] f2fs: prevent newly created inode from being dirtied incorrectly

2018-01-10 Thread Daeho Jeong
Now, we invoke f2fs_mark_inode_dirty_sync() to make an inode dirty in advance of creating a new node page for the inode. By this, some inodes whose node page is not created yet can be linked into the global dirty list. If the checkpoint is executed at this moment, the inode will be written back