Re: [f2fs-dev] [syzbot] [f2fs?] INFO: task hung in f2fs_balance_fs

2023-03-25 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:4bdec23f971b Merge tag 'hwmon-for-v6.3-rc4' of git://git.k.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=177bdf41c8 kernel config: https://syzkaller.appspot.com/x/.config?x=ea09b08

Re: [f2fs-dev] [PATCH 3/7] libfs: Validate negative dentries in case-insensitive directories

2023-03-25 Thread Al Viro
On Wed, Jun 22, 2022 at 03:45:59PM -0400, Gabriel Krisman Bertazi wrote: > +static inline int generic_ci_d_revalidate(struct dentry *dentry, > + const struct qstr *name, > + unsigned int flags) > +{ > + int is_creation

Re: [f2fs-dev] [PATCH 1/7] fs: Expose name under lookup to d_revalidate hook

2023-03-25 Thread Al Viro
On Sat, Mar 25, 2023 at 09:33:10AM -0400, Theodore Ts'o wrote: > On Thu, Mar 23, 2023 at 10:33:20AM -0400, Theodore Ts'o wrote: > > On Wed, Jun 22, 2022 at 03:45:57PM -0400, Gabriel Krisman Bertazi wrote: > > > Negative dentries support on case-insensitive ext4/f2fs will require > > > access to the

Re: [f2fs-dev] [PATCH] f2fs: apply zone capacity to all zone type

2023-03-25 Thread Chao Yu
On 2023/3/22 7:35, Jaegeuk Kim wrote: On 03/21, Jaegeuk Kim wrote: If we manage the zone capacity per zone type, it'll break the GC assumption. And, the current logic complains valid block count mismatch. Let's apply zone capacity to all zone type, if specified. Added: Fixes: de881df97768 ("

Re: [f2fs-dev] [PATCH v1] f2fs: Fix discard bug on zoned block devices with 2MiB zone size

2023-03-25 Thread Chao Yu
On 2023/3/25 0:54, Jaegeuk Kim wrote: On 03/24, Chao Yu wrote: On 2023/3/24 6:03, Jaegeuk Kim wrote: On 03/23, Chao Yu wrote: On 2023/3/13 17:48, Yonggil Song wrote: When using f2fs on a zoned block device with 2MiB zone size, IO errors occurs because f2fs tries to write data to a zone that h

Re: [f2fs-dev] [PATCH 2/3 v2] f2fs: factor out discard_cmd usage from general rb_tree use

2023-03-25 Thread Chao Yu
On 2023/3/25 0:57, Jaegeuk Kim wrote: This is a second part to remove the mixed use of rb_tree in discard_cmd from extent_cache. This should also fix arm32 memory alignment issue caused by shared rb_entry. [struct discard_cmd] [struct rb_entry] [0] struct rb_node rb_node;[

Re: [f2fs-dev] [PATCH 1/7] fs: Expose name under lookup to d_revalidate hook

2023-03-25 Thread Theodore Ts'o
On Thu, Mar 23, 2023 at 10:33:20AM -0400, Theodore Ts'o wrote: > On Wed, Jun 22, 2022 at 03:45:57PM -0400, Gabriel Krisman Bertazi wrote: > > Negative dentries support on case-insensitive ext4/f2fs will require > > access to the name under lookup to ensure it matches the dentry. This > > adds an o

Re: [f2fs-dev] [PATCH v1] f2fs: Fix discard bug on zoned block devices with 2MiB zone size

2023-03-25 Thread Chao Yu
On 2023/3/25 0:54, Jaegeuk Kim wrote: On 03/24, Chao Yu wrote: On 2023/3/24 6:03, Jaegeuk Kim wrote: On 03/23, Chao Yu wrote: On 2023/3/13 17:48, Yonggil Song wrote: When using f2fs on a zoned block device with 2MiB zone size, IO errors occurs because f2fs tries to write data to a zone that h