Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3211238pxb; Mon, 9 Nov 2020 05:42:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJzM3AWtnQzjb32/OcqH3mDemDiApb82ixEwSk9DCzeG927/tbw9XX/0Wn1SWEhQHesTXvsw X-Received: by 2002:a17:906:5017:: with SMTP id s23mr15558311ejj.359.1604929337869; Mon, 09 Nov 2020 05:42:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604929337; cv=none; d=google.com; s=arc-20160816; b=uZHflNmeRPhPyKw/acib1DVdG+dNvwHkvR4Z0zfvj8aFSvYCRpoZAa0nB3qerf31sf b09xrM7sqTTDVGS3xl0eXJrXyYvH8VURyT8qaabew6TOtuCF7JRlJs0jWDXgrEa+UVnd 3d8j8zpSa7VT/QppWYhONyyaVQpjKVGyplMQdIT3iIpXVQRRCXLRdyf/FldKA3norakf Idb0FjSjUUqezntq0PeINHfnphf1wicsbhqmnw3p0H0UT1oAMejkxvomvbQlcV5XUoeg EbIB6q+kGd0DwAQG7GkwdR5jJ8kiY4dC6HG2AIsYBr9MeTjXkZ9SGX3pHyE+27SOEojA XN4A== 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=yENzvkZX0ng6b1eniOe6rkNgl9njZPh70TrI0RnoMQc=; b=GxscGuy4G1LvpuFJ9ditlz0fiv0Yr2LMQGsS0wk40TcGdEv/T0aiQbOxConisoVAsX bR5EVLsf0aNO1mKwYU8zEEXUV1wDJygHppNESz3tSSCIsk8OyuCurAFODKVakaHFL6r/ irlyikumQLOAne5Q69C4ceLrEGrw6zB5oj2DxlPPl4qrJdJbA8ugVyc4BzKvNHraRgiP Ud8u5XTqXxuxC56zaEOkhyel6Wb/+OMGaM464DUpHtHrk5iPd6ZY3PkbadHEYO8mOyFu OpQ6bNKVAEaJo9LMZblfeKlWV2KVIixSg819Jq/U0Ceo6dG0uafaKTmxPypCxGurJQeu QgTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sIeu2QLg; 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 c13si7114446ejs.117.2020.11.09.05.41.54; Mon, 09 Nov 2020 05:42:17 -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=sIeu2QLg; 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 S2387706AbgKINil (ORCPT + 99 others); Mon, 9 Nov 2020 08:38:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:55932 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730614AbgKINB6 (ORCPT ); Mon, 9 Nov 2020 08:01:58 -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 D53BA206C0; Mon, 9 Nov 2020 13:01:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604926917; bh=gB8obUv6WNp1jhhZllmd3FJBO+me5pu0XTCl/9bAw3M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sIeu2QLgUmXYYauJTcWjJGshX0CMLa89zCMfZgwABGI+/RWLoftg4PXwyhdsTHscO CK1F5L8CykLr+KWovQ7rCf0taJxO3EVEk5vwmKcmPEmaiCqrYl2hM+3JfAToSsjyWh z38InwOLABTchUMNrtApzdRhPqyrikiKigPWoTzg= 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 4.9 018/117] f2fs: add trace exit in exception path Date: Mon, 9 Nov 2020 13:54:04 +0100 Message-Id: <20201109125026.512041324@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201109125025.630721781@linuxfoundation.org> References: <20201109125025.630721781@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 0b061bbf1639a..c1b24d7aa6ef1 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -904,8 +904,12 @@ int 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