Skip to contentSkip to conversation

btrfs: tree-log.c Remove some redundant code and comment.

PATCH New Li Hong 1 participant 1 message Oct 17, 2009 Btrfs file system

lore
Share & tools
lore

Li Hong

author
#0 lore raw

PATCH 1/1 btrfs: tree-log.c Remove some redundant code and comment.

Quoted 1 line

From c8635be5ccdaff6d399c115b7c51ecc622cb9191 Mon Sep 17 00:00:00 2001

From: Li Hong <[email protected]>
Date: Sat, 17 Oct 2009 16:48:56 +0800
Subject: [PATCH] btrfs: tree-log.c Remove some redundant code and comment.

fs/btrfs/tree-log.c +1 -7
index f51bf13..c228499 100644
@@ -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;
 }
 
 /*
Signature · 1 line
1.6.0.4