[f2fs-dev] [PATCH] f2fs: let FI_OPU_WRITE override FADVISE_COLD_BIT

2022-09-06 Thread Weichao Guo via Linux-f2fs-devel
Cold files may be fragmented due to SSR, defragment is needed as sequential reads are dominant scenarios of these files. FI_OPU_WRITE should override FADVISE_COLD_BIT to avoid defragment fails. Signed-off-by: Weichao Guo Signed-off-by: Chao Yu --- fs/f2fs/data.c | 2 +- 1 file changed, 1 insert

[f2fs-dev] [Bug 216285] KASAN: slab-out-of-bounds in mutex_lock and NULL pointer dereference at fs/f2fs/segment.c: f2fs_update_meta_page() when mount a crafted f2fs image

2022-09-06 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216285 --- Comment #2 from Wenqing Liu (wenqingliu0...@gmail.com) --- Thank you so much. -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug. _

[f2fs-dev] [Bug 216456] New: KASAN: use-after-free in check_index_in_prev_nodes when mount a crafted f2fs image

2022-09-06 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216456 Bug ID: 216456 Summary: KASAN: use-after-free in check_index_in_prev_nodes when mount a crafted f2fs image Product: File System Version: 2.5 Kernel Version: 5.19.X - 6.0-rc4

Re: [f2fs-dev] [PATCH v5 0/8] make statx() return DIO alignment information

2022-09-06 Thread Eric Biggers
On Fri, Aug 26, 2022 at 11:58:43PM -0700, Eric Biggers wrote: > This patchset makes the statx() system call return direct I/O (DIO) > alignment information. This allows userspace to easily determine > whether a file supports DIO, and if so with what alignment restrictions. Al, any thoughts on thi

Re: [f2fs-dev] [PATCH v2 2/2] fsverity: stop using PG_error to track error status

2022-09-06 Thread Chao Yu
On 2022/8/16 7:50, Eric Biggers wrote: From: Eric Biggers As a step towards freeing the PG_error flag for other uses, change ext4 and f2fs to stop using PG_error to track verity errors. Instead, if a verity error occurs, just mark the whole bio as failed. The coarser granularity isn't really

Re: [f2fs-dev] [PATCH v2 1/2] fscrypt: stop using PG_error to track error status

2022-09-06 Thread Chao Yu
On 2022/8/16 7:50, Eric Biggers wrote: From: Eric Biggers As a step towards freeing the PG_error flag for other uses, change ext4 and f2fs to stop using PG_error to track decryption errors. Instead, if a decryption error occurs, just mark the whole bio as failed. The coarser granularity isn't

[f2fs-dev] [PATCH -next] f2fs:fix the race condition of resize flag between resizefs

2022-09-06 Thread Zhang Qilong via Linux-f2fs-devel
Because the set/clear SBI_IS_RESIZEFS flag not between any locks, there is a race: thread1 thread2 ioctl(resizefs) set RESIZEFS flag ioctl(resizefs) ... set RESIZEFS flag ... clear RESIZEFS flag # then no RESIZEFS flag on thread2

[f2fs-dev] [PATCH -next] f2fs:start freeing cluster pages from the unused number

2022-09-06 Thread Zhang Qilong via Linux-f2fs-devel
We can start freeing cluster page(s) from which compression is not used. It will get better performance. Signed-off-by: Zhang Qilong --- fs/f2fs/compress.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index 6baaff4c52ba..a2d02a184

[f2fs-dev] [Bug 216050] f2fs_gc occupies 100% cpu

2022-09-06 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216050 Sebastian Goth (li...@sgoth.de) changed: What|Removed |Added CC||li...@sgoth.de --- Comm

Re: [f2fs-dev] [PATCH v5 2/8] vfs: support STATX_DIOALIGN on block devices

2022-09-06 Thread Christoph Hellwig
Looks good: Reviewed-by: Christoph Hellwig ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Re: [f2fs-dev] [PATCH v5 8/8] xfs: support STATX_DIOALIGN

2022-09-06 Thread Christoph Hellwig
Looks good: Reviewed-by: Christoph Hellwig ___ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

[f2fs-dev] 答复: [PATCH -next] f2fs: total hit count should only be increased when entry found

2022-09-06 Thread zhangqilong via Linux-f2fs-devel
> when entry found > > On 2022/9/5 22:12, Zhang Qilong wrote: > > We should not increase total hit count when not found the entry in > > cache extent tree. Remove the stat_inc_total_hit when > > f2fs_lookup_rb_tree returns nullptr. > > Actually, f2fs will account total lookup count into sbi->tota