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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From c8635be5ccdaff6d399c115b7c51ecc622cb9191 Mon Sep 17 00:00:00 2001
From: Li Hong <lihong.hi@xxxxxxxxx>
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@xxxxxxxxx>

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

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux