[f2fs-dev] [PATCH] f2fs: fix out-place-update DIO write

2018-11-12 Thread Chao Yu
In get_more_blocks(), we may override @create as below code: create = dio->op == REQ_OP_WRITE; if (dio->flags & DIO_SKIP_HOLES) { if (fs_startblk <= ((i_size_read(dio->inode) - 1) >> i_blkbits))

[f2fs-dev] [PATCH v3] f2fs: only flush the single temp bio cache which owns the target page

2018-11-12 Thread Yunlong Song
Previously, when f2fs finds which temp bio cache owns the target page, it will flush all the three temp bio caches, but we only need to flush one single bio cache indeed, which can help to keep bio merged. Signed-off-by: Yunlong Song --- fs/f2fs/data.c | 37 ++---

Re: [f2fs-dev] [PATCH] f2fs: fix race between write_checkpoint and write_begin

2018-11-12 Thread Chao Yu
On 2018/11/13 8:34, Jaegeuk Kim wrote: > On 11/12, Chao Yu wrote: >> On 2018-11-12 20:01, Sheng Yong wrote: >>> The following race could lead to inconsistent SIT bitmap: >>> >>> Task A Task B >>> == == >>> f2fs_write_checkpoint >>>

[f2fs-dev] [PATCH] f2fs: avoid GC causing encrypted file corrupted

2018-11-12 Thread Chao Yu
Jaegeuk, On 2018/9/18 21:21, Chao Yu wrote: > On 2018/9/18 20:39, Yunlong Song wrote: >> The encrypted file may be corrupted by GC in following case: >> >> Time 1: | segment 1 blkaddr = A | GC -> | segment 2 blkaddr = B | >> Encrypted block 1 is moved from blkaddr A of segment 1 to blkaddr B of

Re: [f2fs-dev] [PATCH] f2fs: fix race between write_checkpoint and write_begin

2018-11-12 Thread Jaegeuk Kim
On 11/12, Chao Yu wrote: > On 2018-11-12 20:01, Sheng Yong wrote: > > The following race could lead to inconsistent SIT bitmap: > > > > Task A Task B > > == == > > f2fs_write_checkpoint > > block_operations > > f2fs_lock_all > >

Re: [f2fs-dev] [PATCH v2] f2fs: only flush the single temp bio cache which owns the target page

2018-11-12 Thread Jaegeuk Kim
On 10/24, Yunlong Song wrote: > Previously, when f2fs finds which temp bio cache owns the target page, > it will flush all the three temp bio caches, but we only need to flush > one single bio cache indeed, which can help to keep bio merged. > > Signed-off-by: Yunlong Song > --- >

Re: [f2fs-dev] [PATCH] f2fs: fix race between write_checkpoint and write_begin

2018-11-12 Thread Chao Yu
On 2018-11-12 20:01, Sheng Yong wrote: > The following race could lead to inconsistent SIT bitmap: > > Task A Task B > == == > f2fs_write_checkpoint > block_operations > f2fs_lock_all > down_write(node_change) >

[f2fs-dev] [PATCH v3] f2fs: fix to be aware discard/preflush/dio command in is_idle()

2018-11-12 Thread Chao Yu
From: Chao Yu This patch adds missing in-flight discard/preflush/dio command count check in is_idle(). Signed-off-by: Chao Yu --- v3: - add in-flight r/w dio count check as well. fs/f2fs/f2fs.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/f2fs.h

[f2fs-dev] [PATCH v2] f2fs: add to account direct IO

2018-11-12 Thread Chao Yu
From: Chao Yu This patch adds f2fs_dio_submit_bio() to hook submit_io/end_io functions in direct IO path, in order to account DIO. Later, we will add this count into is_idle() to let background GC/Discard thread be aware of DIO. Signed-off-by: Chao Yu --- v2: - access bio->bi_status instead

[f2fs-dev] [PATCH] f2fs: fix race between write_checkpoint and write_begin

2018-11-12 Thread Sheng Yong
The following race could lead to inconsistent SIT bitmap: Task A Task B == == f2fs_write_checkpoint block_operations f2fs_lock_all down_write(node_change) down_write(node_write) ... sync ...

[f2fs-dev] Inquiry 12/11/2018

2018-11-12 Thread sinara-group--- via Linux-f2fs-devel
Hi,friend, This is Daniel Murray and i am from Sinara Group Co.Ltd Group Co.,LTD in Russia. We are glad to know about your company from the web and we are interested in your products. Could you kindly send us your Latest catalog and price list for our trial order. Best Regards, Daniel