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 32200466AF1 for ; Wed, 5 Aug 2026 12:29:50 +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=1785932992; cv=none; b=AmFA97JU5AjYHL3+0Nk94YSsbCENH3snWGVWlRG2jgILzeo459rmBcNPDKZuRreWDi9QNAxG7r7zDAjJpfRfAgKRax24HiSmOdrVY8TjTV88x8r2sXenYlL3M1X6T//rXBc42wLWx5ERJCm2y8rH/60e6CaD53d4mtJJLlhkCaM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785932992; c=relaxed/simple; bh=umYe2Jc3jme45v+iQxAKMFyK3xnQDnKV/1oLF4zQsAg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ePmRbUHubosMtwm5iFlWdtgc7t6PHO3EenXeeS8cjpRuOvU1WEIc55fxb4boMBDzwcGhuuXaoIWYJnwL2Fv+I1cAPnLQmG/IQumKf+rdHQvph2cDQztllD2BHnhOkxrLpI6kaY8tYmD1rfjwmjUCCffa4a3Mqj5136i9lUP2/sw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=K3foTXhW; 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="K3foTXhW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C13A21F000E9; Wed, 5 Aug 2026 12:29:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1785932990; bh=lWl2gpPpOoFF3WEPX5Hv0dwD+S5zhvnvdIZck7e0O4o=; h=From:To:Cc:Subject:Date; b=K3foTXhWAbslvEbRQodNr2qw2B1f3jBBDWJUGPCwVvsFaV5xyFFb5Na/QNQpL0b9z aJDANdiXz6KCKMjgJtEImb+fl97Jlg4038cMQMnAuA4r4abLmJYfxQQr0GBkU5YZvH iBuV0DJ5u/Pq0cOlGS1F0JCrbvEaZR0O2df7TtTB1F02BltlTsOobqeqOwbBqfgWew qDrn1HjooBxMvEc1WBOEYHZBRB5ywmSah/CSuYhajUp2rOOVOKVnJiW16Jzpnx9Q6D Qxqp/OaT3dHNcRfJtH1ptVUAF+Bd/d0pHJSO0AqADYeLiFZMa8ZykAZiTL5kyOxicQ 0lLuxNtqrafzA== From: Chao Yu To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu , Chao Yu Subject: [PATCH] f2fs: print error information in f2fs_put_super() Date: Wed, 5 Aug 2026 12:29:47 +0000 Message-ID: <20260805122947.675205-1-chao@kernel.org> X-Mailer: git-send-email 2.55.0.654.g21b8a5bc05-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Chao Yu So that we can how in which path we may missed to account the reference correclty: normal path or error handling path. Signed-off-by: Chao Yu --- fs/f2fs/super.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 6b55c30f0daa..76768bb7efcf 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -2080,7 +2080,8 @@ static void f2fs_put_super(struct super_block *sb) if (!get_pages(sbi, i)) continue; f2fs_err(sbi, "detect filesystem reference count leak during " - "umount, type: %d, count: %lld", i, get_pages(sbi, i)); + "umount, type: %d, count: %lld, err: %d, cp_err: %d", + i, get_pages(sbi, i), err, f2fs_cp_error(sbi)); f2fs_bug_on(sbi, 1); } -- 2.49.0