[f2fs-dev] [PATCH] f2fs: fix to remove F2FS_COMPR_FL and tag F2FS_NOCOMP_FL at the same time

2022-06-20 Thread Chao Liu
From: Chao Liu If the inode has the compress flag, it will fail to use 'chattr -c +m' to remove its compress flag and tag no compress flag. However, the same command will be successful when executed again, as shown below: $ touch foo.txt $ chattr +c foo.txt $ chattr -c +m foo.txt chattr:

[f2fs-dev] [PATCH] f2fs: allow compression of files without blocks

2022-06-20 Thread Chao Liu
From: Chao Liu Files created by truncate have a size but no blocks, so they can be allowed to enable compression. Signed-off-by: Chao Liu --- fs/f2fs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 2d1114b0ceef..daaa0dfd2d2e 1006

Re: [f2fs-dev] [PATCH 2/2] f2fs: handle decompress only post processing in softirq

2022-06-20 Thread Gao Xiang
On Mon, Jun 20, 2022 at 10:38:43AM -0700, Daeho Jeong wrote: > From: Daeho Jeong > > Now decompression is being handled in workqueue and it makes read I/O > latency non-deterministic, because of the non-deterministic scheduling > nature of workqueues. So, I made it handled in softirq context only

[f2fs-dev] [PATCH 2/2] f2fs: handle decompress only post processing in softirq

2022-06-20 Thread Daeho Jeong
From: Daeho Jeong Now decompression is being handled in workqueue and it makes read I/O latency non-deterministic, because of the non-deterministic scheduling nature of workqueues. So, I made it handled in softirq context only if possible, not in low memory devices, since this modification will m

[f2fs-dev] [PATCH 1/2] f2fs: introduce memory mode

2022-06-20 Thread Daeho Jeong
From: Daeho Jeong Introduce memory mode to supports "normal" and "low" memory modes. "low" mode is to support low memory devices. Because of the nature of low memory devices, in this mode, f2fs will try to save memory sometimes by sacrificing performance. "normal" mode is the default mode and sam

[f2fs-dev] [PATCH v3 2/2] resize.f2fs: update man page for options -i, -s and -V

2022-06-20 Thread qixiaoyu1
Signed-off-by: qixiaoyu1 --- man/resize.f2fs.8 | 18 ++ 1 file changed, 18 insertions(+) diff --git a/man/resize.f2fs.8 b/man/resize.f2fs.8 index a4b6cd7..3288760 100644 --- a/man/resize.f2fs.8 +++ b/man/resize.f2fs.8 @@ -17,6 +17,15 @@ resize.f2fs \- resize filesystem size .B \

[f2fs-dev] [PATCH v3 1/2] resize.f2fs: add option to manually specify new overprovision

2022-06-20 Thread qixiaoyu1
From: liuchao12 Make.f2fs supports manually specifying overprovision, and we expect resize.f2fs to support it as well. This change add a new '-o' option to manually specify overprovision, and fix to check free space before grow. Otherwise, after grow, kernel may report below error message when w

Re: [f2fs-dev] [PATCH v2] resize.f2fs: add option to manually specify new overprovision

2022-06-20 Thread qixiaoyu1
From: liuchao12 Make.f2fs supports manually specifying overprovision, and we expect resize.f2fs to support it as well. This change add a new '-o' option to manually specify overprovision, and fix to check free space before grow. Otherwise, after grow, kernel may report below error message when w