From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 28DD01DE2A4 for ; Thu, 16 Jan 2025 10:47:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737024474; cv=none; b=K3i36zf1ntVmWUOfgHYHjIQfBDPI1q15iQRqUj1RLKHAUUeli3ZaLiAIc5yWVgh+Bh6o3bEDKxT3Crqo0hxB5mEODhWSJ3e9HrgdArx5fOM2pEQOywznG+9ZkMS5/yUC+fccZIxXhganuzkZUZUm8HnXBHYs5jgdgEJNmSZmoaY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737024474; c=relaxed/simple; bh=eS7al2cDQe608MXxrKRwyBoDCAaNPo9MlgP1bRQ4/Jw=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=fJq2l5wKYT0W47fkWb5KHo6H5pm3MBgU5bTj+2dmW+zzKMQ0/OXiwAjVrI4udv+sPsVZis3kHipLpbzMuGeBd2ZIR8gAfzmV/zLmkG/DSgKQfJJWV2thQryvFDry4YgzcU/0a888iYUM+f2h+0LBApuszut7rSBcX1qdZyYsCB4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gX2Rp0BQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gX2Rp0BQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF2BAC4CEE2; Thu, 16 Jan 2025 10:47:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737024473; bh=eS7al2cDQe608MXxrKRwyBoDCAaNPo9MlgP1bRQ4/Jw=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=gX2Rp0BQLFJK3RhlEKDhYuzcB0yU3Qaee0qeEqjUDtUcSXqSwN6jM9HktDeIgK4lT 7iefoefcZLSWLP2OjEFiiNei0NGY2rxNYvmZqp/N/u3mXBWUURyN0Mc0jzW1iFWS0G gg/eccqQwmlRrmbhH6sLYmQZLe230gti8G2widIStq4TRl8SupvLxaUiOni/w9X+97 h8cthv9GzA6y1rRNxrYkWhj6Do6ZNQpX7ibYxAp0cfCPCC9SH5MQpsVgUpTiarziNs brdjV/Yb3S1K7b5kQskfYnBehukN/6nDiMZZpheVIHfmoeis1ACbniNdjyOPd0icZZ 1301jQlnq34gw== Message-ID: Date: Thu, 16 Jan 2025 18:47:49 +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, linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Hao_hao.Wang@unisoc.com, Ke.Wang@unisoc.com, zhiguo.niu@unisoc.com Subject: Re: [PATCH v5] f2fs: Optimize f2fs_truncate_data_blocks_range() To: Yi Sun , jaegeuk@kernel.org References: <20250115053943.2450661-1-yi.sun@unisoc.com> Content-Language: en-US From: Chao Yu In-Reply-To: <20250115053943.2450661-1-yi.sun@unisoc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/15/25 13:39, Yi Sun wrote: > Function f2fs_invalidate_blocks() can process consecutive > blocks at a time, so f2fs_truncate_data_blocks_range() is > optimized to use the new functionality of > f2fs_invalidate_blocks(). > > Add two variables @blkstart and @blklen, @blkstart records > the first address of the consecutive blocks, and @blkstart > records the number of consecutive blocks. > > Signed-off-by: Yi Sun Reviewed-by: Chao Yu Thanks,