public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Li Hong <lihong.hi@gmail.com>
To: Chris Mason <chris.mason@oracle.com>, linux-btrfs@vger.kernel.org
Subject: [PATCH] btrfs: tree-log.c Remove some redundant code and comment.
Date: Sat, 17 Oct 2009 17:00:07 +0800	[thread overview]
Message-ID: <20091017090007.GA6255@uhli> (raw)

>From c8635be5ccdaff6d399c115b7c51ecc622cb9191 Mon Sep 17 00:00:00 2001
From: Li Hong <lihong.hi@gmail.com>
Date: Sat, 17 Oct 2009 16:48:56 +0800
Subject: [PATCH] btrfs: tree-log.c Remove some redundant code and comment.

Signed-off-by: Li Hong <lihong.hi@gmail.com>

diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index f51bf13..c228499 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -3148,13 +3148,7 @@ void btrfs_record_unlink_dir(struct btrfs_trans_handle *trans,
 	 * so the new name gets discovered.
 	 */
 	if (for_rename)
-		goto record;
-
-	/* we can safely do the unlink without any special recording */
-	return;
-
-record:
-	BTRFS_I(dir)->last_unlink_trans = trans->transid;
+		BTRFS_I(dir)->last_unlink_trans = trans->transid;
 }
 
 /*
-- 
1.6.0.4


                 reply	other threads:[~2009-10-17  9:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20091017090007.GA6255@uhli \
    --to=lihong.hi@gmail.com \
    --cc=chris.mason@oracle.com \
    --cc=linux-btrfs@vger.kernel.org \
    /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