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

2023-03-23 Thread Chao Yu
On 2023/3/14 4:12, 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;

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

2023-03-13 Thread Jaegeuk Kim
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;[0] struct rb_node rb_node; union {

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

2023-03-10 Thread Eric Biggers
On Fri, Mar 10, 2023 at 01:04:53PM -0800, Jaegeuk Kim wrote: > +static bool f2fs_check_discard_tree(struct f2fs_sb_info *sbi) > +{ > +#ifdef CONFIG_F2FS_CHECK_FS > + struct discard_cmd_control *dcc = SM_I(sbi)->dcc_info; > + struct rb_node *cur = rb_first_cached(>root), *next; > +

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

2023-03-10 Thread Jaegeuk Kim
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;[0] struct rb_node rb_node; union {