Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp807077pxb; Tue, 3 Nov 2020 13:04:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXyeG5je0kXUwRONG3+mXMxZLL3U3LBfbHOs/Qk62h4a+3dc0tCy/GID6GiLDx9sfcngtM X-Received: by 2002:a05:6402:1bdb:: with SMTP id ch27mr21184064edb.63.1604437496779; Tue, 03 Nov 2020 13:04:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604437496; cv=none; d=google.com; s=arc-20160816; b=MLWb0k/Xe95r8oLm6Eg6x8QjoYH3VWg8jqwc6TwKIwkCyve/r6V5v4HGWyl7R6kMds EWTDGCOcyGX/oZQ8tSzTjB+QldCy4o1s8zCRkgkS6qCSZ2U4S30xFlsziwImZJKRpdvK 9Ck5UVvg1HAMJeK9d95rQ0plc/agEIYiJBacKezRUME507TK0Qtuxj/Bh8KPFOcGUp0z CtMD1cgR5HonGAX6oUBLPay6gZnAYlHlCKYxBiQijk5OMFuelz/TfDVgzZM6psb2g+B3 Ltx7exAbqVToTTuoiUvPFyPMD86DVGWcnW1TLJoLwvwCFvpkjHR8mWrCgaPcZGiCP8GO TvQA== 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=PEGexBSDYj1zsmMuqNhPNDxNfuM/P+z4Y7dgV5lDtcE=; b=rx8AyfECo7lzVSCFRPQkT5yceOXAkJkSwgDzWm9ZDEtTqDaa5QKqDYpIy67cKkXG0B vEwi3c1nLzpMTvhTVyqLvIKN4cqQGMJN32Qito+LqdubXru3TaK42zqUeTmBp+GFz3Ru zJ8HbvWPv4FRRWxnySLYHcqm6Zq4V9Tl887qf4mWH8sh511xkMrckWdxA+CtQWKt4ZcN 4YKQyQzy7NyzCbM01A3AsIg+beWZEQp2yLAVFKBYmXTT1edsnJb+7UvGtvzANaTgBYA9 5JQQSlePUNfJLw1nlAfxD4Ndsu9ANrK1+oikLvf6A1eOXeH8IMqhB3dVxnuUdIT1MfCs PJgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iL9WjKJx; 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 g10si27035ejd.402.2020.11.03.13.04.33; Tue, 03 Nov 2020 13:04:56 -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=iL9WjKJx; 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 S2387735AbgKCVDQ (ORCPT + 99 others); Tue, 3 Nov 2020 16:03:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:40612 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387728AbgKCVDN (ORCPT ); Tue, 3 Nov 2020 16:03:13 -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 CD83F206B5; Tue, 3 Nov 2020 21:03:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437393; bh=jl9siiztROZz5SkfbiMIwUbKaF9tvMxIU5H2VKHFOhk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iL9WjKJxZSMOPQ5VsInJT2PZ9nhnc8bQRfvwWwNCeJrKeTMwD298uYeAoVO9E327o Nz6diy4qzrQ1J4Mrh8jSn/Vd0SPa7U6uFGNH1k3NHcy4dzs2KPCDlnkxD0nHxFxarg 11/O+dtbr804nQnBQ8MUqdXTBNbLJXG3+FFFyecU= 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.19 058/191] f2fs: add trace exit in exception path Date: Tue, 3 Nov 2020 21:35:50 +0100 Message-Id: <20201103203240.191486878@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203232.656475008@linuxfoundation.org> References: <20201103203232.656475008@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 388500eec7291..d412fc150988c 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c @@ -1003,8 +1003,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