From patchwork Wed Nov 26 10:23:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Theodore Ts'o X-Patchwork-Id: 5384661 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D75C09F39B for ; Wed, 26 Nov 2014 10:25:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 11B0A20160 for ; Wed, 26 Nov 2014 10:25:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 278692014A for ; Wed, 26 Nov 2014 10:25:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751330AbaKZKYH (ORCPT ); Wed, 26 Nov 2014 05:24:07 -0500 Received: from imap.thunk.org ([74.207.234.97]:52545 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750848AbaKZKYF (ORCPT ); Wed, 26 Nov 2014 05:24:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=EbWjG5wpSb4tSD+FXyCRhFiDyObusS3j92QGMKfuP+Q=; b=EpsqF/2VGH2aYC7kFvWlE1DHejMH7z2ocuxqgWoJCFlGadR43wBcBC8fMC47rtxKyAiYSR4mTfYMiP/2oTNtPrEUzFHFxHaCpThGDLBcV2aiURWeas0YcMaZgkg0Ex1H09VnFQJStoUET4PgAYEwSSRb0EcaZe0TENcYbAFWU/w=; Received: from root (helo=closure.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.80) (envelope-from ) id 1XtZlT-0003QG-Ub; Wed, 26 Nov 2014 10:24:04 +0000 Received: by closure.thunk.org (Postfix, from userid 15806) id 6886F58029C; Wed, 26 Nov 2014 05:24:02 -0500 (EST) From: Theodore Ts'o To: Linux Filesystem Development List Cc: Ext4 Developers List , Linux btrfs Developers List , XFS Developers , Theodore Ts'o Subject: [PATCH-v4 4/7] vfs: add lazytime tracepoints for better debugging Date: Wed, 26 Nov 2014 05:23:54 -0500 Message-Id: <1416997437-26092-5-git-send-email-tytso@mit.edu> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1416997437-26092-1-git-send-email-tytso@mit.edu> References: <1416997437-26092-1-git-send-email-tytso@mit.edu> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Theodore Ts'o --- fs/fs-writeback.c | 1 + fs/inode.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 529480a..3d87174 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "internal.h" /* diff --git a/fs/inode.c b/fs/inode.c index 37c0429..b2fea60 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -20,6 +20,9 @@ #include #include "internal.h" +#define CREATE_TRACE_POINTS +#include + /* * Inode locking rules: * @@ -1443,6 +1446,7 @@ retry: inode->i_op->write_time(inode); else if (inode->i_sb->s_op->write_inode) mark_inode_dirty_sync(inode); + trace_fs_lazytime_iput(inode); goto retry; } iput_final(inode); @@ -1561,6 +1565,7 @@ static int update_time(struct inode *inode, struct timespec *time, int flags) inode->i_ts_dirty_day = days_since_boot; spin_unlock(&inode->i_lock); inode_requeue_dirtytime(inode); + trace_fs_lazytime_defer(inode); return 0; } force_dirty: