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 94F9026A0D5 for ; Thu, 6 Aug 2026 02:52:32 +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=1785984753; cv=none; b=ouyKH+q53RpMhEjIJcSertU+2aIQVMkzcZKaxBEzSCf4NwqtDjfEs7ne96Ciyk3nlhjegn7aFX4DrUjxhURBFq27rjtt/Hlh5lyHslMAx1lXlFaixsXF52uTFBBkJDLUP8sK1kEme60ddEp8AQ/oAqsXXav8taGX52a4yD1Gp84= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785984753; c=relaxed/simple; bh=gCXa0XBXrRpWelq2KdfhmIKeG1eYO0WtKFAB/ii64Zw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SP7110Si7GZYn+qVZYFPWewWSzi9x6/DWMYOpJf9+XanpY/IJ2aDmuB87LFWJjkCDb5PjxovO5yJwTf3nXqNavddux0X9e1H8NqmyBwZfiTvx8f1XnFBg2OSm1dyJ1UgsNu0JpqG1SdAAVAdQkYINc7VFp0A3OstaSB74TF6OPA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ic8AMtdY; 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="Ic8AMtdY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 520901F000E9; Thu, 6 Aug 2026 02:52:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1785984752; bh=+emREkmLMQHBZB1YtQSWdNtRWoQppA9KHuAfHeyLu+Q=; h=From:To:Cc:Subject:Date; b=Ic8AMtdYiClHYdvvpcs6m5MMd6m4DKHOTJK2mkffcOrAiSR2XPdpO4InaMxskQqbi GMBPczLQWcQjAOl+FatjZ8hMKyVM2N59ErrOv9DReM1deI3q8wHQi21Xt9T4v39wXy wQBpmR5rAwnBMDgmhiXZfULGzar++tkuDG8tQnmEi0WtTVcLp16/6pPGk9gGbHsENU NmmWB43mxQHErd24hU0IthIg9cPi7GWQldKNA5c3jcFsI6f+oTdZ9eJLBnmfzwSV1s Cgh+7qI8TAO4wbS5JwVfkogXHqtQBZ0YQ9wqekuOfiJ65y311DcUNhBM7YVFac0YCF n1KpwMHYPhILw== From: Chao Yu To: jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chao Yu Subject: [PATCH v2] f2fs: print error information in f2fs_put_super() Date: Thu, 6 Aug 2026 10:52:24 +0800 Message-ID: <20260806025224.2194078-1-chao@kernel.org> X-Mailer: git-send-email 2.55.0.629.g250fe7f194-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 So that we can know in which path we may missed to account the reference correclty: normal path or error handling path. Signed-off-by: Chao Yu --- v2: - fix typo in commit message 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 25309e6d4156..5902b2da7ea4 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -2058,7 +2058,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