From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E450219E8 for ; Mon, 24 Aug 2026 01:03:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787533390; cv=none; b=c5l7uIHMtlB98llagyFkuY5Vi7XY+4f59hCy0gFAWjgCZweW6XUrmIaXkHx3nlhu+MKDI2ZFpUtl7gHyFu1OOtlsLYJnXCSSuzTGaaIozCYB/evT8HIPHLoQRaDDWd5o2SPIbYnVBdwcEvMsgw63Ja6uTHcyBN/KUfoSQ2n6yHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787533390; c=relaxed/simple; bh=Nn4Co2q7MvnsBr9uN8C2qGlAK8L4fFxUmDizO2yChZU=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=ppPmkO8xkIg4L1iqAnf+YqnaYjrIePpWhseOaEqCf8w4jev5HMvT+EHTz+uTB6sIBTNiDhHEirDEpmPLqBsSUE2fHxzk/2MzKRoqMZ3udv7uv59b1Y1TLqer9V/c8015fgd+UGSRfc03sE03sS55+JoaU6ZVYVDv4iyw98f6fHE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JoWlSVvb; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JoWlSVvb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14A771F000E9; Mon, 24 Aug 2026 01:03:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1787533389; bh=1JCtvzs7ucXhd4fAl/T97AqRrhouKPNDQ/l1KJn/42I=; h=Date:Cc:Subject:To:References:From:In-Reply-To; b=JoWlSVvb7w5gqat22u/LOvLr67o8RFfEcFUZUfh7FrIFMs+5g1SAIfO62b5VNYxi7 7p1PZ81LijS1zvuuwDqMZSSRdeKqJy0wCI36M7RGHZLFVQacDT56UL+clpi9hoEUY8 vH4hxjXAChzEuHia0f69UX/bZHxaXsRW5hZpDqYBCF02HPWcRKDxhHY6vIRJn/MpcJ rAVCvurg7tZ8p+P+3ttukdRY47lUjSeNGgPhhucKIM8fz3n9spZOjiHmj5m7ylucGu Ba/iv0T0U+QqleAk+ECwklLCWhBRbytmhUhAZhBpVh/sPcKTKzKi59KysKDwyAZgus 1ih8Cg4c8igBQ== Message-ID: <1d1ac804-405e-4854-a0aa-f0889fe54c7a@kernel.org> Date: Mon, 24 Aug 2026 09:03:05 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: chao@kernel.org, LKML Subject: Re: [PATCH] erofs: simplify z_erofs_gbuf_growsize() To: Gao Xiang , linux-erofs@lists.ozlabs.org References: <20260823142306.42533-1-xiang@kernel.org> Content-Language: en-US From: Chao Yu In-Reply-To: <20260823142306.42533-1-xiang@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 8/23/26 22:23, Gao Xiang wrote: > - Use guard(mutex)() to manage gbuf_resize_mutex; > > - Nullify tmp_pages after successful allocation, so that the error > path becomes clearer. > > Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,