[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <51940a4e-b01d-cef8-af35-87788df483f1@huaweicloud.com>
Date: Mon, 13 Feb 2023 20:27:32 +0800
From: Kemeng Shi <shikemeng@...weicloud.com>
To: Ojaswin Mujoo <ojaswin@...ux.ibm.com>
Cc: tytso@....edu, adilger.kernel@...ger.ca, jack@...e.cz,
linux-ext4@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 04/21] ext4: get correct ext4_group_info in
ext4_mb_prefetch_fini
on 2/13/2023 3:03 PM, Ojaswin Mujoo wrote:
> On Fri, Feb 10, 2023 at 03:48:08AM +0800, Kemeng Shi wrote:
>> We always get ext4_group_desc with group + 1 and ext4_group_info with
>> group to check if we need do initialize ext4_group_info for the group.
>> Just get ext4_group_desc with group for ext4_group_info initialization
>> check.
>>
>> Signed-off-by: Kemeng Shi <shikemeng@...weicloud.com>
>> ---
>> fs/ext4/mballoc.c | 6 +++---
>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
>> index 352ac9139fee..f24f80ecf318 100644
>> --- a/fs/ext4/mballoc.c
>> +++ b/fs/ext4/mballoc.c
>> @@ -2570,13 +2570,13 @@ void ext4_mb_prefetch_fini(struct super_block *sb, ext4_group_t group,
>> unsigned int nr)
>> {
>> while (nr-- > 0) {
>> - struct ext4_group_desc *gdp = ext4_get_group_desc(sb, group,
>> - NULL);
>> - struct ext4_group_info *grp = ext4_get_group_info(sb, group);
>> + struct ext4_group_desc *gdp;
>> + struct ext4_group_info *grp;
>>
>> if (!group)
>> group = ext4_get_groups_count(sb);
>> group--;
>> + gdp = ext4_get_group_desc(sb, group, NULL);
>> grp = ext4_get_group_info(sb, group);
>>
>> if (EXT4_MB_GRP_NEED_INIT(grp) &&
>> --
>> 2.30.0
>>
>
> This is a duplicate of [1] :)
>
> But I'm okay with this going in as that patchseries might take some time
> to get merged. Feel free to add:
>
> Reviewed-by: Ojaswin Mujoo <ojaswin@...ux.ibm.com>
>
> [1] https://lore.kernel.org/r/85bbcb3774e38de65b737ef0000241ddbdda73aa.1674822311.git.ojaswin@linux.ibm.com
>
Hi Ojaswin, Thank you so much to review my code. I 'm sorry that I didn't
notice this patch is duplicated and I really appreciate that you allow this
one to get merged first. I will add your sign to this patch in next version.
Thanks!
--
Best wishes
Kemeng Shi
Powered by blists - more mailing lists