Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp904359pxx; Tue, 27 Oct 2020 03:34:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw93lCv6inTejHIR9umUxjwgKohuizf2eJSnwkYYRPTJDCBLYoCmJQCGkYRBj91qIx1/fcf X-Received: by 2002:a05:6402:d0d:: with SMTP id eb13mr1509386edb.244.1603794886259; Tue, 27 Oct 2020 03:34:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603794886; cv=none; d=google.com; s=arc-20160816; b=o94QuH5u53Qrlmz2B5hckRb3zjHyQFVp6G869hbpesJdIfS7BQkYgEJEIF1NEC2Q7r iAlHOYLoxioD2ESIGZ1B/bfga229EwuJKKYnVc8jFDDs74R6U47em+xoSTuKcPenDBGs bZu4f/ejPyFbidZvyXu4+Cd0NGMvnxQ10/cCI6DmUsdWcEHvCwjou2UW059QeGaw6rDF pEek/INFR1Q6KWNEY9mu5r256Uabu588/ComqEb90YWvNDjrPtpWOIaXZB0CVAngOGF2 qppCrkMYGUNzgLo+UyziDphZp0D0sIJnhSzpkpWNWjf4BpM49OWvOBGnO/Tv1Yb42vTf /9aw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fHAUZes/UzfJJO9a/VkoO+De+80r2UT+bgIGEa2lAzE=; b=XaCPRoBo9Gb+oXbZdeq/Yh3su2S6W96H0N5bRGWAywvtkHNWqtststa3tcY0dcB/60 rPpSltICBq29fsbBpMSlEDk73Oorq6O2TrRm+i/+A5UiLYdUuwVjMTTkH4f3lI/u2jpC cOckjKgycxdT40SpRp9ZnPdpxvJsG3J+InBajElQyhHFQ1PpfNWRyuiUrZNLqztNBPpv 3RSKap5q2tJ4CoX+5VIPcsPpkVzOqDFlaGZN2Qgsv/i6mhSO/zyjK3wShLXy7ZIGpT9U LTRi2qpHfj5f5dt80mtnIG2doHAnIVVd6F+DuTC4BrJakM+XSEeYWSge14fpth4b2wRx 5nIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TySgtbZz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r12si577560ejr.690.2020.10.27.03.34.09; Tue, 27 Oct 2020 03:34:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TySgtbZz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436783AbgJZX51 (ORCPT + 99 others); Mon, 26 Oct 2020 19:57:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:33476 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410900AbgJZXzY (ORCPT ); Mon, 26 Oct 2020 19:55:24 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 242A820882; Mon, 26 Oct 2020 23:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603756523; bh=kCVvXTqXOvgRirCXkMDjYuGatSpN3Y2PccTgYQlKDUE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TySgtbZzv4X/CM8nwMhPNeSQHUjEYlJUgk1j/FDDIRKgAlx5M2jPyPDfKub2IhFgs /xJX4xrNMSL6pwm0bbaJeUUPDyXYwcbeSHr7RQHjw84/gpRMUASxnEs/G5WZgj1wfx 77jFSzTKtCOs4zplmYtqDEqTrr1BTZIer9w2GmJc= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Zhang Qilong , Chao Yu , Jaegeuk Kim , Sasha Levin , linux-f2fs-devel@lists.sourceforge.net Subject: [PATCH AUTOSEL 5.4 05/80] f2fs: add trace exit in exception path Date: Mon, 26 Oct 2020 19:54:01 -0400 Message-Id: <20201026235516.1025100-5-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026235516.1025100-1-sashal@kernel.org> References: <20201026235516.1025100-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhang Qilong [ Upstream commit 9b66482282888d02832b7d90239e1cdb18e4b431 ] Missing the trace exit in f2fs_sync_dirty_inodes Signed-off-by: Zhang Qilong Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- fs/f2fs/checkpoint.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index bbd07fe8a4921..3d7f9e20a54bd 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -1044,8 +1044,12 @@ int f2fs_sync_dirty_inodes(struct f2fs_sb_info *sbi, enum inode_type type) get_pages(sbi, is_dir ? F2FS_DIRTY_DENTS : F2FS_DIRTY_DATA)); retry: - if (unlikely(f2fs_cp_error(sbi))) + if (unlikely(f2fs_cp_error(sbi))) { + trace_f2fs_sync_dirty_inodes_exit(sbi->sb, is_dir, + get_pages(sbi, is_dir ? + F2FS_DIRTY_DENTS : F2FS_DIRTY_DATA)); return -EIO; + } spin_lock(&sbi->inode_lock[type]); -- 2.25.1