All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] btrfs: tree-log.c Remove some redundant code and comment.
@ 2009-10-17  9:00 Li Hong
  0 siblings, 0 replies; only message in thread
From: Li Hong @ 2009-10-17  9:00 UTC (permalink / raw)
  To: Chris Mason, linux-btrfs

>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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-17  9:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-17  9:00 [PATCH] btrfs: tree-log.c Remove some redundant code and comment Li Hong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.