Message ID | 20231007074552.3170496-1-chao@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp797818vqo; Sat, 7 Oct 2023 00:46:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFlRTq1bDK0yg4wQsVj6bdj56mzUiiCX2MRsJw1B4ZKB/GH56BjXqtKfJ1TpoQqgREe2Eda X-Received: by 2002:a17:903:230a:b0:1c7:7e00:8075 with SMTP id d10-20020a170903230a00b001c77e008075mr12823466plh.66.1696664799545; Sat, 07 Oct 2023 00:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696664799; cv=none; d=google.com; s=arc-20160816; b=arNR8I6AuIobTZdQGIKkjI+4QIQVTdn4OFftRbqJb3IZGElemrzZ2/TTHY9NT3WNp3 +9soUbxw5jIGitHMjWJPql6JLCsBSdY0tb0AchJwL6Va5UTmbfK/XH/oPEwMbi/r8TQo pXGW8eNmHtF42613x8i5E/KWWKvTLgV8gOxtpM2JpEaoEqPwNSAnnhssUD0jxoF6JjhH Iz27MSlzqmT9ad++lk9/WyFJ6D5nYv5++JPDUdGSVejM7tlyTAD1MKuXXRCd/8LHKQ6A 9rWJH889dT1SCMTg7PIItkYaGUqYeCJV5+Sd8DaFh1Gm5jK20o9KtAeWZFyvVeyjmG+K AQCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=zYa7LO8/Wh38Nb3C+f7kcpPnWxwJd6t+/Ec+JvinqRI=; fh=X1/oBJvTGJUQ0YtRp03u+3tPfRw/dXXALWynfOSlfQQ=; b=GNUGC87s+5ItQZUzwJIJCAkAyASuTs7owv86bTxrKxgvW8T8f/5bMTx/vHZFC5G60q u2RpIjO2zn4/SuNvbdgM9b4pwJGOAiJ8blkWSXbaDqj5DxkEcbxGd+wdy90NBA6P/hD1 kKj1P3vNVkj9XyNWcHnhvLMKr+xB1b6O6Og0JqklXiHESy+ZUeSG37G7F802HHIEbFDC kr/9pb4MI6dgFZuEgPPuSyYh54+BeGvlJkE1gGug97Maseb4U7TXz/JlF7SvXRXIaQxn xFV6GzkEIJAtJTTi5jmc62o1K//nEgCIbOKckEsZs3/I21mo1LkCBVnfKQMoXs/SOECo 7xEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jBA2dmFZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j8-20020a170903024800b001c0eefc0dfesi5732878plh.130.2023.10.07.00.46.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 00:46:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jBA2dmFZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 98D03822D142; Sat, 7 Oct 2023 00:46:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343734AbjJGHqZ (ORCPT <rfc822;ezelljr.billy@gmail.com> + 18 others); Sat, 7 Oct 2023 03:46:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343713AbjJGHqY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 7 Oct 2023 03:46:24 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0328ECA for <linux-kernel@vger.kernel.org>; Sat, 7 Oct 2023 00:46:23 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49ABCC433C8; Sat, 7 Oct 2023 07:46:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696664782; bh=7rTaaOwJ2XLjmWgatV7u/BoCzFYYD2I7Tous8LEzDnw=; h=From:To:Cc:Subject:Date:From; b=jBA2dmFZkbBvFOg+3XCyntOekKurJ/TwSib6bXG5qcMhfJfFQ/Cn6w+piTYwnUxzd FaDfts0ZBNFSl2LqCRKAYIXB2CeR80MhrYThSsysifOnpn/zJEoBIuo0hqL/w/GAVM rbyxQIFDsXWq5LpC9XSWWCyPXR2sNN4uiTRIlK8kmdLttHUyZSwvkXlxifTvElyElR XA56wfJyxPbBbm4GZTwhLpef1irgERmSRZTWx3YNt8jP2byRFz7NAnchRTx9PveyiD 0xkL/5GvH/tRBM3IMRzpQicllWWe/lrNw42G8QqVXq/BQzCcrfhz7LkeQaNFguUOV+ k6ASXtzDyE/Cw== From: Chao Yu <chao@kernel.org> To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu <chao@kernel.org> Subject: [PATCH] f2fs: fix to initialize map.m_pblk in f2fs_precache_extents() Date: Sat, 7 Oct 2023 15:45:52 +0800 Message-Id: <20231007074552.3170496-1-chao@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 07 Oct 2023 00:46:37 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779081988749360108 X-GMAIL-MSGID: 1779081988749360108 |
Series |
f2fs: fix to initialize map.m_pblk in f2fs_precache_extents()
|
|
Commit Message
Chao Yu
Oct. 7, 2023, 7:45 a.m. UTC
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 <chao@kernel.org>
---
fs/f2fs/file.c | 1 +
1 file changed, 1 insertion(+)
Comments
Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <jaegeuk@kernel.org>: On Sat, 7 Oct 2023 15:45:52 +0800 you wrote: > 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 <chao@kernel.org> > > [...] Here is the summary with links: - [f2fs-dev] f2fs: fix to initialize map.m_pblk in f2fs_precache_extents() https://git.kernel.org/jaegeuk/f2fs/c/8b07c1fb0f1a You are awesome, thank you!
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 5d726cbc4f0b..cfb199f9af0d 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -3261,6 +3261,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;