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 AD13139FC0 for ; Wed, 15 Nov 2023 20:51:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="AIFhDE4G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A33EC4E74A; Wed, 15 Nov 2023 20:51:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1700081487; bh=ENSvhSPpf0RiZqnJ67PV8RfSOrFgDr+g94UD0ZLWR3w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AIFhDE4GGUAF9PB9uYqunILxALxlPE0zuDI5WG1dvUKl9gZNym8M7kx2FfAb20BeO thw5wB6A2sLHS5OJtXw+JF4uNEXshTkQidENhGPLYs7XsRmk9TyeEpTUsH+f8Ny9eL k5OcWC8cISKC1xixv+DI7ce7lWZpcBcpnA+H0eX0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Chao Yu , Jaegeuk Kim , Sasha Levin Subject: [PATCH 5.15 183/244] f2fs: fix to initialize map.m_pblk in f2fs_precache_extents() Date: Wed, 15 Nov 2023 15:36:15 -0500 Message-ID: <20231115203559.352129571@linuxfoundation.org> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231115203548.387164783@linuxfoundation.org> References: <20231115203548.387164783@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Chao Yu [ Upstream commit 8b07c1fb0f1ad139373c8253f2fad8bc43fab07d ] Otherwise, it may print random physical block address in tracepoint of f2fs_map_blocks() as below: f2fs_map_blocks: dev = (253,16), ino = 2297, file offset = 0, start blkaddr = 0xa356c421, len = 0x0, flags = 0 Fixes: c4020b2da4c9 ("f2fs: support F2FS_IOC_PRECACHE_EXTENTS") Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index e1131af0396b9..58fd32db025da 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -3210,6 +3210,7 @@ int f2fs_precache_extents(struct inode *inode) return -EOPNOTSUPP; map.m_lblk = 0; + map.m_pblk = 0; map.m_next_pgofs = NULL; map.m_next_extent = &m_next_extent; map.m_seg_type = NO_CHECK_TYPE; -- 2.42.0