linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Tao Ma <tm@tao.ma>
Cc: linux-ext4@vger.kernel.org, Jan Kara <jack@suse.cz>
Subject: Re: [PATCH] jbd/jbd2: remove obsolete summarise_journal_usage.
Date: Thu, 5 May 2011 18:14:54 +0200	[thread overview]
Message-ID: <20110505161454.GM5323@quack.suse.cz> (raw)
In-Reply-To: <1304610859-480-1-git-send-email-tm@tao.ma>

On Thu 05-05-11 23:54:19, Tao Ma wrote:
> From: Tao Ma <boyu.mt@taobao.com>
> 
> summarise_journal_usage seems to be obsolete for a long time,
> so remove it.
  Yes. Added to my tree. Thanks.

								Honza
> 
> Cc: Jan Kara <jack@suse.cz>
> Signed-off-by: Tao Ma <boyu.mt@taobao.com>
> ---
>  fs/jbd/commit.c  |    6 ------
>  fs/jbd2/commit.c |    6 ------
>  2 files changed, 0 insertions(+), 12 deletions(-)
> 
> diff --git a/fs/jbd/commit.c b/fs/jbd/commit.c
> index 69b1804..9cbf9e4 100644
> --- a/fs/jbd/commit.c
> +++ b/fs/jbd/commit.c
> @@ -302,12 +302,6 @@ void journal_commit_transaction(journal_t *journal)
>  	 * all outstanding updates to complete.
>  	 */
>  
> -#ifdef COMMIT_STATS
> -	spin_lock(&journal->j_list_lock);
> -	summarise_journal_usage(journal);
> -	spin_unlock(&journal->j_list_lock);
> -#endif
> -
>  	/* Do we need to erase the effects of a prior journal_flush? */
>  	if (journal->j_flags & JFS_FLUSHED) {
>  		jbd_debug(3, "super block updated\n");
> diff --git a/fs/jbd2/commit.c b/fs/jbd2/commit.c
> index 6e28000..29148a8 100644
> --- a/fs/jbd2/commit.c
> +++ b/fs/jbd2/commit.c
> @@ -338,12 +338,6 @@ void jbd2_journal_commit_transaction(journal_t *journal)
>  	 * all outstanding updates to complete.
>  	 */
>  
> -#ifdef COMMIT_STATS
> -	spin_lock(&journal->j_list_lock);
> -	summarise_journal_usage(journal);
> -	spin_unlock(&journal->j_list_lock);
> -#endif
> -
>  	/* Do we need to erase the effects of a prior jbd2_journal_flush? */
>  	if (journal->j_flags & JBD2_FLUSHED) {
>  		jbd_debug(3, "super block updated\n");
> -- 
> 1.7.1
> 
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

  reply	other threads:[~2011-05-05 16:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-05 15:54 [PATCH] jbd/jbd2: remove obsolete summarise_journal_usage Tao Ma
2011-05-05 16:14 ` Jan Kara [this message]
2011-05-05 16:18   ` Niraj Kulkarni
2011-05-05 17:25     ` Jan Kara
2011-05-09  0:14   ` Ted Ts'o
2011-05-09 11:05     ` Jan Kara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110505161454.GM5323@quack.suse.cz \
    --to=jack@suse.cz \
    --cc=linux-ext4@vger.kernel.org \
    --cc=tm@tao.ma \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).