Re: [f2fs-dev] [PATCH v2] f2fs: add iostat latency statistics support for discard

2023-03-20 Thread kernel test robot
Hi Yangtao, I love your patch! Perhaps something to improve: [auto build test WARNING on jaegeuk-f2fs/dev-test] [also build test WARNING on jaegeuk-f2fs/dev linus/master v6.3-rc3 next-20230320] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

[f2fs-dev] [PATCH v2] f2fs: Fix system crash due to lack of free space in LFS

2023-03-20 Thread Yonggil Song
When f2fs tries to checkpoint during foreground gc in LFS mode, system crash occurs due to lack of free space if the amount of dirty node and dentry pages generated by data migration exceeds free space. The reproduction sequence is as follows. - 20GiB capacity block device (null_blk) - format

Re: [f2fs-dev] [RESEND, PATCH v2 01/10] kobject: introduce kobject_del_and_put()

2023-03-20 Thread Damien Le Moal via Linux-f2fs-devel
On 3/21/23 03:46, Yangtao Li wrote: > There are plenty of using kobject_del() and kobject_put() together > in the kernel tree. This patch wraps these two calls in a single helper. > > Signed-off-by: Yangtao Li > --- > v2: > -add kobject_del_and_put() users > resend patchset to gregkh, Rafael and

[f2fs-dev] [RESEND, PATCH v2 02/10] f2fs: convert to kobject_del_and_put()

2023-03-20 Thread Yangtao Li via Linux-f2fs-devel
Use kobject_del_and_put() to simplify code. Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Cc: Damien Le Moal Signed-off-by: Yangtao Li --- fs/f2fs/sysfs.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c index

[f2fs-dev] [RESEND, PATCH v2 01/10] kobject: introduce kobject_del_and_put()

2023-03-20 Thread Yangtao Li via Linux-f2fs-devel
There are plenty of using kobject_del() and kobject_put() together in the kernel tree. This patch wraps these two calls in a single helper. Signed-off-by: Yangtao Li --- v2: -add kobject_del_and_put() users resend patchset to gregkh, Rafael and Damien include/linux/kobject.h | 1 +

[f2fs-dev] [PATCH v2] f2fs: add iostat latency statistics support for discard

2023-03-20 Thread Yangtao Li via Linux-f2fs-devel
In this patch, it adds to account discard latency. Signed-off-by: Yangtao Li --- v2: -rename get_bio_iostat_private to iostat_get_bio_private fs/f2fs/data.c | 2 +- fs/f2fs/f2fs.h | 1 + fs/f2fs/iostat.c| 83 +

[f2fs-dev] [PATCH] f2fs: remove else in f2fs_write_cache_pages()

2023-03-20 Thread Yangtao Li via Linux-f2fs-devel
As Christoph Hellwig point out: Please avoid the else by doing the goto in the branch. Signed-off-by: Yangtao Li --- fs/f2fs/data.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index bf51e6e4eb64..fa931fb768e7 100644 ---

[f2fs-dev] [PATCH v2] f2fs: compress: fix to call f2fs_wait_on_page_writeback() in f2fs_write_raw_pages()

2023-03-20 Thread Yangtao Li via Linux-f2fs-devel
BUG_ON() will be triggered when writing files concurrently, because the same page is writtenback multiple times. 1597 void folio_end_writeback(struct folio *folio) 1598 { .. 1618 if (!__folio_end_writeback(folio)) 1619 BUG(); .. 1625 } kernel

Re: [f2fs-dev] [PATCH] f2fs: compress: fix to wait page writeback in f2fs_write_raw_pages()

2023-03-20 Thread Christoph Hellwig
On Thu, Mar 16, 2023 at 05:36:32PM +0800, Yangtao Li wrote: > + if (PageWriteback(cc->rpages[i])) { > + if (wbc->sync_mode != WB_SYNC_NONE) > + f2fs_wait_on_page_writeback(cc->rpages[i], > +

Re: [f2fs-dev] [RFC PATCH] f2fs: preserve direct write semantics when buffering is forced

2023-03-20 Thread Christoph Hellwig
On Mon, Feb 20, 2023 at 01:20:04PM +0100, Hans Holmberg wrote: > A) Supporting proper direct writes for zoned block devices would > be the best, but it is currently not supported (probably for > a good but non-obvious reason). Would it be feasible to > implement proper direct IO? I don't think

Re: [f2fs-dev] [PATCH v2, RESEND 01/10] kobject: introduce kobject_del_and_put()

2023-03-20 Thread Damien Le Moal via Linux-f2fs-devel
On 3/20/23 16:11, Yangtao Li wrote: > Hi filesystem maintainers, > >> Hard to comment on patches with this. It is only 10 patches. So send >> everything please. > > If you are interested in the entire patchset besides Damien, > please let me know. I'll resend the email later to cc more people.

Re: [f2fs-dev] [PATCH v2, RESEND 01/10] kobject: introduce kobject_del_and_put()

2023-03-20 Thread Yangtao Li via Linux-f2fs-devel
Hi filesystem maintainers, > Hard to comment on patches with this. It is only 10 patches. So send > everything please. If you are interested in the entire patchset besides Damien, please let me know. I'll resend the email later to cc more people. Thx, Yangtao