Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp831711pxb; Tue, 3 Nov 2020 13:49:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzNFBGBvNnxUHf9iJDzYpxi1ARD5hvLOntny/TsFDe3PtHu1PIFg5+cQWdWtIPqKQ/YWh55 X-Received: by 2002:aa7:db57:: with SMTP id n23mr3109282edt.208.1604440167297; Tue, 03 Nov 2020 13:49:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604440167; cv=none; d=google.com; s=arc-20160816; b=GeDGSHk2FvHbjqgbiIs21wIohpWsqIFymzXjflgEGZp06sVh+6DL2A4D6GnkLahx80 km3eohmw4stYyxGRTPkO+PMDj0vED0DjBJG0HgMVTvnpEgwvxbcAaEPgz8AYYGdeImCs IjnF8hZeiBRJkif5mIJmBBRib0L06JW+3YB/iawSJY6wbHaUFqSsGYSk4r8dYswt6Iqh m0SrsxbRBu+3d0twwpTTPCZKQYP16dCC0hsGKKyasTAOsKr/vP4Xrudrnnky0BVQdIQ7 H+fb+0A74Yx3gxhTRPNelE3GW1xvOccvhNhlW5aQO1nPPPQK2EKxH6ccHkHLqqiE3j3Y OPDw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5hvhbZRf7A6WUmP0h9jO0WFQlLHcfE+NDNzP7kgU14M=; b=dC8HS2h0TDx5+ATKyDFcLBH6VLKdidwHGsIRpG3OrbzzgplARknrgyvBd5qxQr4L3O C0tYYhC4fuETepUBwgM5Siw+iAqHSB+K2zicix1+YbX/47q6rL+6znAPdi1EsT9UDcXg jSwpCcveq6/PsAB3FgZb5OTQXmESUnOSGHhUbj96CIrx/jGxcO0HYmG7nnrzy4dDy6Py q7IqFugC6DsLoXV8uIo26jFjyHlCWe9C3riFb4IuN9smVVAWfvJpCMgU5voQDFbl7g5M TMmUJcRfNryzdOjue9U1YfW2hF0Alb4QWQZL9JUDF45ZqNqWWNLTkcveicLEeijz+kyx hryA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YJA4B+vA; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si5758038edq.356.2020.11.03.13.49.04; Tue, 03 Nov 2020 13:49:27 -0800 (PST) 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=YJA4B+vA; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731206AbgKCVou (ORCPT + 99 others); Tue, 3 Nov 2020 16:44:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:51944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732401AbgKCUxl (ORCPT ); Tue, 3 Nov 2020 15:53:41 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5AF4222226; Tue, 3 Nov 2020 20:53:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604436820; bh=qrvoOExPuUgieaXVzJAzg66rCzwW5tS8i7Uj3ZePYZU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YJA4B+vAAP826ISC0NExEaKatbjfJghZV4X3WG5dOMGFPjkDp8CP3FCbYDfcgwTN4 vSV4nUzjRERDZuNfewJY2/x3Nwl3hB7MW3nxmoWLSduNpcZQ2W/0FiTJ5LSjurhCCB cyZ2ptcMjVV9/QdpRL5JMoYpHzmU1SR/73/q1cA8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zhang Qilong , Chao Yu , Jaegeuk Kim , Sasha Levin Subject: [PATCH 5.4 025/214] f2fs: add trace exit in exception path Date: Tue, 3 Nov 2020 21:34:33 +0100 Message-Id: <20201103203252.377419278@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203249.448706377@linuxfoundation.org> References: <20201103203249.448706377@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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.27.0