From nobody Fri Dec 19 14:37:01 2025 Received: from sender3-pp-f112.zoho.com (sender3-pp-f112.zoho.com [136.143.184.112]) (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 C6B9E313E32 for ; Tue, 11 Nov 2025 12:14:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.184.112 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762863276; cv=pass; b=tevoSpJ+lkBq+5hd3Hy2BAVWKO4QvYZEt9pIAty59yQCea02ubxKhQqsm0ZpMWNBh1aVexW5mmH7vJ4NzDEbiSv0D59ND8dDMsGRnZaqRuiDKZA+C4r0Ct4H2K1ci569okhhhQwHuID1/DEo0aDhTy0bYc8IC3eMtPqwarL/xTQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762863276; c=relaxed/simple; bh=xYvHnt73+ArXoWf25mlB0olseCbE6Pe3s3so3DB4RP0=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fTIp4dxpBZt7miZGELmfG15zt4m+UNo/2bAUtsg184R4444F934b2EoIdawd6evTxenyUHS3bJ0E/wniC8SvDJmxPeBmLDgJr2TMLwMsbP2KmfbntdmQ21fPFJWaos5gDGea7a1757aOcACEOJgY5aQlzYLzRhMEX0Ic2YVu9Is= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux.beauty; spf=pass smtp.mailfrom=linux.beauty; dkim=pass (1024-bit key) header.d=linux.beauty header.i=me@linux.beauty header.b=UA1MOXPN; arc=pass smtp.client-ip=136.143.184.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux.beauty Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.beauty Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.beauty header.i=me@linux.beauty header.b="UA1MOXPN" ARC-Seal: i=1; a=rsa-sha256; t=1762863231; cv=none; d=zohomail.com; s=zohoarc; b=lX1iu0UXwB/Hh3T5RvS3ducclCMeLGYssC1Zv8mAQNa0mBfbpLmLFamKv1tEMkkzOWjsLLcTrHqxytp5i3kEWBPS+PqXa4kGW1lhXqVd8QRWkHoXw1r0vfoFY1j8jvld8zw3cDBbGXs19I7Rc426c26fj+DB5TPHogd3+/Tepws= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1762863231; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=Qe8C8WW7PdlIqS1nea6IPWW3yId8LkgwE49m8YwS7i8=; b=Tf1LJbxF3k+rBiF+GtoWZgv39vhtdcih/FzwpFqXlJC8eh6uNMTi1gFLiaasrx9YjI2G9FPWlV8W6xcz3NEoaF3wp3Gv+Ir81Png9bmwCMbqC/LKlNBZaTzooIGTeknHACdnKAVUdKJaZ2bl22EAV5fQUpnSvFxX25ckzn87uAU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=linux.beauty; spf=pass smtp.mailfrom=me@linux.beauty; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1762863231; s=zmail; d=linux.beauty; i=me@linux.beauty; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=Qe8C8WW7PdlIqS1nea6IPWW3yId8LkgwE49m8YwS7i8=; b=UA1MOXPNejWzEeBRSnkHix83U8pPE3VS5BVnXjzr5YpIQMoYe/Hj+bbxL5pF2E1F ed/5xcNofUB7WhCsYrlqoj6bADPC9VvWODn/Et4obf4wmacc2L5Ymrq7LNBieeUFurr G08j5BfgUkgRrpOeVLHPDn8DsoebYrhWIUvq3F4g= Received: by mx.zohomail.com with SMTPS id 1762863228249716.4687552539734; Tue, 11 Nov 2025 04:13:48 -0800 (PST) From: Li Chen To: dm-devel@lists.linux.dev, linux-kernel@vger.kernel.org, Dongsheng Yang , Zheng Gu Subject: [PATCH v2 2/3] dm-pcache: reuse meta_addr in pcache_meta_find_latest Date: Tue, 11 Nov 2025 20:13:35 +0800 Message-ID: <20251111121337.1063443-3-me@linux.beauty> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251111121337.1063443-1-me@linux.beauty> References: <20251111121337.1063443-1-me@linux.beauty> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset="utf-8" From: Li Chen pcache_meta_find_latest() already computes the metadata address as meta_addr. Reuse that instead of recomputing. Signed-off-by: Li Chen Reviewed-by=EF=BC=9A Dongsheng Yang seq, seq_latest)) { seq_latest =3D meta->seq; - latest =3D (void *)header + (i * meta_max_size); + latest =3D meta_addr; } } =20 --=20 2.51.0