Re: [f2fs-dev] [PATCH v1] f2fs: avoid victim selection from previous victim section

2022-11-22 Thread Chao Yu
Hi Yonggil, I guess your email client forces converting tab and space characters of patch, please check that. On 2022/11/22 10:36, Yonggil Song wrote: When f2fs chooses GC victim in large section & LFS mode, next_victim_seg[gc_type] is referenced first. After segment is freed,

Re: [f2fs-dev] (2) [PATCH v1] f2fs: avoid victim selection from previous victim section

2022-11-22 Thread Yonggil Song
Hi Chao, Thanks for your review. I'll fix this and resend a mail. Thanks >Hi Yonggil, > >I guess your email client forces converting tab and space characters of >patch, please check that. > >On 2022/11/22 10:36, Yonggil Song wrote: >> When f2fs chooses GC victim in large section & LFS mode, >>

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

2022-11-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216050 --- Comment #89 from bogdan.nico...@gmail.com --- I confirm the bug persists both with background_gc=on and background_gc=sync. It's especially prone to manifest when the machine is idle for a long time. It almost feels like the gc hangs because

Re: [f2fs-dev] [PATCH 2/5] fs: affs: initialize fsdata in affs_truncate()

2022-11-22 Thread David Sterba
On Mon, Nov 21, 2022 at 12:21:31PM +0100, Alexander Potapenko wrote: > When aops->write_begin() does not initialize fsdata, KMSAN may report > an error passing the latter to aops->write_end(). > > Fix this by unconditionally initializing fsdata. > > Suggested-by: Eric Biggers > Fixes:

Re: [f2fs-dev] [PATCH 2/5] fs: affs: initialize fsdata in affs_truncate()

2022-11-22 Thread Alexander Potapenko via Linux-f2fs-devel
On Mon, Nov 21, 2022 at 8:46 PM Eric Biggers wrote: > > On Mon, Nov 21, 2022 at 12:21:31PM +0100, Alexander Potapenko wrote: > > When aops->write_begin() does not initialize fsdata, KMSAN may report > > an error passing the latter to aops->write_end(). > > > > Fix this by unconditionally

[f2fs-dev] [RESEND][PATCH] f2fs: avoid victim selection from previous victim section

2022-11-22 Thread Yonggil Song
When f2fs chooses GC victim in large section & LFS mode, next_victim_seg[gc_type] is referenced first. After segment is freed, next_victim_seg[gc_type] has the next segment number. However, next_victim_seg[gc_type] still has the last segment number even after the last segment of section is freed.

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

2022-11-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216050 --- Comment #90 from Guido (guido.iod...@gmail.com) --- > diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c > index a71e818cd67b..c351c3269874 100644 > --- a/fs/f2fs/data.c > +++ b/fs/f2fs/data.c > @@ -1325,6 +1325,7 @@ struct page

Re: [f2fs-dev] [PATCH v3 14/23] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()

2022-11-22 Thread Vishal Moola
On Mon, Nov 14, 2022 at 1:38 PM Vishal Moola wrote: > > On Sun, Nov 13, 2022 at 11:02 PM Chao Yu wrote: > > > > On 2022/10/18 4:24, Vishal Moola (Oracle) wrote: > > > Converted the function to use a folio_batch instead of pagevec. This is in > > > preparation for the removal of

Re: [f2fs-dev] [PATCH v3 14/23] f2fs: Convert f2fs_write_cache_pages() to use filemap_get_folios_tag()

2022-11-22 Thread Vishal Moola
On Tue, Nov 22, 2022 at 6:26 PM Vishal Moola wrote: > > On Mon, Nov 14, 2022 at 1:38 PM Vishal Moola wrote: > > > > On Sun, Nov 13, 2022 at 11:02 PM Chao Yu wrote: > > > > > > On 2022/10/18 4:24, Vishal Moola (Oracle) wrote: > > > > Converted the function to use a folio_batch instead of