[f2fs-dev] [PATCH 2/3] f2fs: use onstack pages instead of pvec

2022-04-28 Thread Fengnan Chang via Linux-f2fs-devel
Since pvec have 15 pages, it not a multiple of 4, when write compressed pages, write in 64K as a unit, it will call pagevec_lookup_range_tag agagin, sometimes this will take a lot of time. Use onstack pages instead of pvec to mitigate this problem. Signed-off-by: Fengnan Chang --- fs/f2fs/compre

[f2fs-dev] [Bug 215916] New: kernel BUG at fs/f2fs/segment.c:2560!

2022-04-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215916 Bug ID: 215916 Summary: kernel BUG at fs/f2fs/segment.c:2560! Product: File System Version: 2.5 Kernel Version: 5.17 Hardware: All OS: Linux Tree: Mainline

Re: [f2fs-dev] [PATCH v2 6/7] ext4: Move ext4_match_ci into libfs

2022-04-28 Thread kernel test robot
Hi Gabriel, I love your patch! Yet something to improve: [auto build test ERROR on tytso-ext4/dev] [also build test ERROR on jaegeuk-f2fs/dev-test linus/master v5.18-rc4 next-20220428] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest

[f2fs-dev] [PATCH v2 6/7] ext4: Move ext4_match_ci into libfs

2022-04-28 Thread Gabriel Krisman Bertazi
Matching case-insensitive names is a generic operation and can be shared with f2fs. Move it next to the rest of the shared casefold fs code. Signed-off-by: Gabriel Krisman Bertazi --- fs/ext4/namei.c| 62 +- fs/libfs.c | 60 +++

[f2fs-dev] [PATCH v2 1/7] ext4: Match the f2fs ci_compare implementation

2022-04-28 Thread Gabriel Krisman Bertazi
ext4_ci_compare originally follows utf8_*_strcmp, which means return zero on match. This means that every usage of that in ext4 negates the return. Turn it into a predicate function, let it follow the kernel convention and return true on match, which means it's now the same as its f2fs counterpar

[f2fs-dev] [PATCH v2 5/7] ext4: Log error when lookup of encoded dentry fails

2022-04-28 Thread Gabriel Krisman Bertazi
If the volume is in strict mode, ext4_ci_compare can report a broken encoding name. This will not trigger on a bad lookup, which is caught earlier, only if the actual disk name is bad. Signed-off-by: Gabriel Krisman Bertazi --- Changes since v1: - reword error message "file in directory" ->

[f2fs-dev] [PATCH v2 7/7] f2fs: Reuse generic_ci_match for ci comparisons

2022-04-28 Thread Gabriel Krisman Bertazi
Now that ci_match is part of libfs, make f2fs reuse it instead of having a different implementation. Signed-off-by: Gabriel Krisman Bertazi --- fs/f2fs/dir.c | 58 --- 1 file changed, 4 insertions(+), 54 deletions(-) diff --git a/fs/f2fs/dir.c b/f

[f2fs-dev] [PATCH v2 2/7] ext4: Simplify the handling of cached insensitive names

2022-04-28 Thread Gabriel Krisman Bertazi
Keeping it as qstr avoids the unnecessary conversion in ext4_match Signed-off-by: Gabriel Krisman Bertazi -- Changes since v1: - Simplify hunk (eric) --- fs/ext4/ext4.h | 2 +- fs/ext4/namei.c | 22 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/fs/e

[f2fs-dev] [PATCH v2 4/7] ext4: Simplify hash check on ext4_match

2022-04-28 Thread Gabriel Krisman Bertazi
The existence of fname->cf_name.name requires s_encoding & IS_CASEFOLDED, therefore this can be simplified. Signed-off-by: Gabriel Krisman Bertazi --- fs/ext4/namei.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index 5

[f2fs-dev] [PATCH v2 0/7] Clean up the case-insenstive lookup path

2022-04-28 Thread Gabriel Krisman Bertazi
This is the v2 of this series. it applies Eric's comments and extend the series to complete the merge of generic_ci_match for ext4 and f2fs. The case-insensitive implementations in f2fs and ext4 have quite a bit of duplicated code. This series simplifies the ext4 version, with the goal of extrac

[f2fs-dev] [PATCH v2 3/7] ext4: Implement ci comparison using unicode_name

2022-04-28 Thread Gabriel Krisman Bertazi
By using a new type here, we can hide most of the caching casefold logic from ext4. The condition in ext4_match is now quite redundant, but this is addressed in the next patch. This doesn't use ext4_filename to keep it generic, since the function will be moved to libfs to be shared with f2fs. Si

Re: [f2fs-dev] [PATCH 16/16] dm-zoned: ensure only power of 2 zone sizes are allowed

2022-04-28 Thread Luis Chamberlain
On Fri, Apr 29, 2022 at 06:43:58AM +0900, Damien Le Moal wrote: > On 4/29/22 02:34, Luis Chamberlain wrote: > > One step at a time. > > Yes, in general, I agree. But in this case, that will create kernel > versions that end up having partial support for zoned drives. Not ideal to > say the least.

Re: [f2fs-dev] [PATCH 16/16] dm-zoned: ensure only power of 2 zone sizes are allowed

2022-04-28 Thread Damien Le Moal via Linux-f2fs-devel
On 4/29/22 02:34, Luis Chamberlain wrote: > On Thu, Apr 28, 2022 at 08:42:41AM +0900, Damien Le Moal wrote: >> On 4/28/22 01:02, Pankaj Raghav wrote: >>> From: Luis Chamberlain >>> >>> Today dm-zoned relies on the assumption that you have a zone size >>> with a power of 2. Even though the block la

[f2fs-dev] [PATCH v3] f2fs: change the current atomic write way

2022-04-28 Thread Daeho Jeong
From: Daeho Jeong Current atomic write has three major issues like below. - keeps the updates in non-reclaimable memory space and they are even hard to be migrated, which is not good for contiguous memory allocation. - disk spaces used for atomic files cannot be garbage collected, so t

Re: [f2fs-dev] [PATCH 16/16] dm-zoned: ensure only power of 2 zone sizes are allowed

2022-04-28 Thread Luis Chamberlain
On Thu, Apr 28, 2022 at 08:42:41AM +0900, Damien Le Moal wrote: > On 4/28/22 01:02, Pankaj Raghav wrote: > > From: Luis Chamberlain > > > > Today dm-zoned relies on the assumption that you have a zone size > > with a power of 2. Even though the block layer today enforces this > > requirement, the

Re: [f2fs-dev] [PATCH 04/16] block: allow blk-zoned devices to have non-power-of-2 zone size

2022-04-28 Thread Luis Chamberlain
On Thu, Apr 28, 2022 at 08:37:27AM +0900, Damien Le Moal wrote: > Also, the entire premise of this patch series is that it is hard for > people to support the unusable sectors between zone capacity and zone end > for drives with a zone capacity smaller than the zone size. > > Yet, here you do not

[f2fs-dev] [Bug 215914] New: kernel hangs after mounting the image

2022-04-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215914 Bug ID: 215914 Summary: kernel hangs after mounting the image Product: File System Version: 2.5 Kernel Version: 5.17 Hardware: All OS: Linux Tree: Mainline

[f2fs-dev] [Bug 215897] kernel BUG at fs/f2fs/f2fs.h:2511!

2022-04-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215897 Chao Yu ([email protected]) changed: What|Removed |Added Status|NEW |RESOLVED CC|

[f2fs-dev] [Bug 215895] kernel BUG at fs/inode.c:611!

2022-04-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215895 Chao Yu ([email protected]) changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[f2fs-dev] [Bug 215657] UBSAN: array-index-out-of-bounds in fs/f2fs/segment.c when mount and operate a corrupted image

2022-04-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215657 Chao Yu ([email protected]) changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|-

[f2fs-dev] [Bug 215894] kernel BUG at fs/f2fs/segment.c:2291!

2022-04-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215894 Chao Yu ([email protected]) changed: What|Removed |Added Status|NEW |RESOLVED Resolution|-

[f2fs-dev] [Bug 215894] kernel BUG at fs/f2fs/segment.c:2291!

2022-04-28 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215894 Chao Yu ([email protected]) changed: What|Removed |Added CC||[email protected] --- Comment #