This patch modify discard thread wait policy as below:
issued io_interrupted wait time(ms)
1.8 0 50
2. (0,8) 1 50
3.0 1 500 (dev is busy)
4.0 0
This patch stop discard thread to issue discard io if
something wrong with f2fs, which is similar to fstrim.
Signed-off-by: Yunlei He
---
fs/f2fs/segment.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index 5854cc4..f75f503
From: Chao Yu
Correct return value in two cases:
- return EINVAL if end boundary is out-of-range.
- return EIO if fs needs off-line check.
Signed-off-by: Chao Yu
---
fs/f2fs/segment.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
Hi Chao and Jaegeuk,
On 2018/4/8 20:16, Chao Yu wrote:
> On 2018/4/5 11:58, Gao Xiang wrote:
>> Keep in line with the common case since it is some weird
>> to take the address of an array again.
>
> I encounter compile error after applying this patch:
>
> super.c: In function ‘f2fs_fill_super’:
We should check valid_map_mir and block count to ensure
the flushed raw_sit is correct.
Signed-off-by: Zhikang Zhang
Signed-off-by: Yunlei He
---
fs/f2fs/segment.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/fs/f2fs/segment.c
On 2018/4/8 17:19, heyunlei wrote:
>
>
>> -Original Message-
>> From: Yuchao (T)
>> Sent: Sunday, April 08, 2018 4:26 PM
>> To: heyunlei; jaeg...@kernel.org; linux-f2fs-devel@lists.sourceforge.net
>> Cc: Wangbintian
>> Subject: Re: [f2fs-dev][PATCH 1/2] f2fs: stop issue discard if
On 2018/4/8 15:11, Yunlei He wrote:
> This patch modify discard thread wait policy as below:
> issued io_interrupted wait time(ms)
> 1.8 0 50
> 2. (0,8) 1 50
> 3.0 1 500 (dev
On 2018/4/5 11:58, Gao Xiang wrote:
> Keep in line with the common case since it is some weird
> to take the address of an array again.
I encounter compile error after applying this patch:
super.c: In function ‘f2fs_fill_super’:
super.c:2711:2: error: incompatible type for argument 1 of
f2fs doesn't allow abuse on atomic write class interface, so except
limiting in-mem pages' total memory usage capacity, we need to limit
start-commit time as well, otherwise we may run into infinite loop
during foreground GC because target blocks in victim segment are
belong to atomic opened file
From: Chao Yu
Now, we issue discard asynchronously in separated thread instead of in
checkpoint, after that, we won't encounter long latency in checkpoint
due to huge number of synchronous discard command handling, so, we don't
need to split checkpoint to do trim in batch,
On 2018/4/9 4:28, Zhikang Zhang wrote:
> We should check valid_map_mir and block count to ensure
> the flushed raw_sit is correct.
>
> Signed-off-by: Zhikang Zhang
> Signed-off-by: Yunlei He
Reviewed-by: Chao Yu
Thanks,
On 2018/4/8 10:15, Sheng Yong wrote:
> This patch introduces a new option -V to show the version of mkfs.f2fs
> and exit after that.
BTW, should we add -V for other misc tools?
>
> Signed-off-by: Sheng Yong
Reviewed-by: Chao Yu
Thanks,
On 2018/4/8 10:14, Sheng Yong wrote:
> Resize rebuilds checkpoint with 6 summary blocks, so if
> CP_COMPACT_SUM_FLAG is set in the old checkpoint, clear it.
>
> Signed-off-by: Sheng Yong
Reviewed-by: Chao Yu
Thanks,
Now, we issue discard asynchronously in separated thread instead of in
checkpoint, after that, we won't encounter long latency in checkpoint
due to huge number of synchronous discard command handling, so, we don't
need to split checkpoint to do trim in batch, merge it and obsolete
related sysfs
On 2018/4/7 23:29, Eryu Guan wrote:
> On Thu, Apr 05, 2018 at 03:19:01PM -0700, Eric Biggers wrote:
>> Pass the -f option to mkfs.f2fs when it appears to support it. This is
>> required by f2fs-tools v1.9 and later in order to format the filesystem
>> even when an existing filesystem is detected.
Now, nat bits feature is enabled by default, we will
meet with the following scenarios:
i. disabled, without CP_NAT_BITS_FLAG, if fsck find some
fs errors, fix or write new checkpoint will then enable it.
ii. enabled, with CP_NAT_BITS_FLAG, in the case of sudden
power off, bitmap
nat bits feature is recover default by fsck, no need to
set SBI_NEED_FSCK flag.
Signed-off-by: Yunlei He
---
fs/f2fs/f2fs.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 1df7f10..0ffaefc2 100644
--- a/fs/f2fs/f2fs.h
+++
This patch stop discard thread to issue discard io if
something wrong with f2fs, which is similar to fstrim.
v1->v2: add fs error check in not only discard thread but also umount process
Signed-off-by: Yunlei He
---
fs/f2fs/segment.c | 7 ++-
1 file changed, 6
18 matches
Mail list logo