public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Btrfs: remove unused code in full_send_tree
@ 2014-03-03 13:31 Liu Bo
  2014-03-03 13:31 ` [PATCH 2/2] Btrfs: share the same code for __record_{new,deleted}_ref Liu Bo
  2014-03-03 13:53 ` [PATCH 1/2] Btrfs: remove unused code in full_send_tree gHcAgree
  0 siblings, 2 replies; 4+ messages in thread
From: Liu Bo @ 2014-03-03 13:31 UTC (permalink / raw)
  To: linux-btrfs

It's unnecessary to update key's value, and remove it to keep code clean.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
---
 fs/btrfs/send.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index 3fe4d6e..a5f9626 100644
--- a/fs/btrfs/send.c
+++ b/fs/btrfs/send.c
@@ -5180,10 +5180,6 @@ static int full_send_tree(struct send_ctx *sctx)
 		if (ret < 0)
 			goto out;
 
-		key.objectid = found_key.objectid;
-		key.type = found_key.type;
-		key.offset = found_key.offset + 1;
-
 		ret = btrfs_next_item(send_root, path);
 		if (ret < 0)
 			goto out;
-- 
1.8.2.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-04  2:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-03 13:31 [PATCH 1/2] Btrfs: remove unused code in full_send_tree Liu Bo
2014-03-03 13:31 ` [PATCH 2/2] Btrfs: share the same code for __record_{new,deleted}_ref Liu Bo
2014-03-03 13:53 ` [PATCH 1/2] Btrfs: remove unused code in full_send_tree gHcAgree
2014-03-04  2:17   ` Liu Bo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox