linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] btrfs-progs: check: remove unused found_key variable in walk_down_tree()
@ 2016-08-25  5:20 Wang Xiaoguang
  2016-08-25  5:21 ` [PATCH 2/3] btrfs-progs: check: make low memory mode support partially dropped snapshots Wang Xiaoguang
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Wang Xiaoguang @ 2016-08-25  5:20 UTC (permalink / raw)
  To: linux-btrfs; +Cc: dsterba

Signed-off-by: Wang Xiaoguang <wangxg.fnst@cn.fujitsu.com>
---
 cmds-check.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/cmds-check.c b/cmds-check.c
index 0ddfd24..1cd0421 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -3737,7 +3737,6 @@ static int check_fs_root(struct btrfs_root *root,
 		path.slots[level] = 0;
 	} else {
 		struct btrfs_key key;
-		struct btrfs_disk_key found_key;
 
 		btrfs_disk_key_to_cpu(&key, &root_item->drop_progress);
 		level = root_item->drop_level;
@@ -3745,10 +3744,6 @@ static int check_fs_root(struct btrfs_root *root,
 		wret = btrfs_search_slot(NULL, root, &key, &path, 0, 0);
 		if (wret < 0)
 			goto skip_walking;
-		btrfs_node_key(path.nodes[level], &found_key,
-				path.slots[level]);
-		WARN_ON(memcmp(&found_key, &root_item->drop_progress,
-					sizeof(found_key)));
 	}
 
 	while (1) {
-- 
2.9.0




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

end of thread, other threads:[~2016-09-12  7:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-25  5:20 [PATCH 1/3] btrfs-progs: check: remove unused found_key variable in walk_down_tree() Wang Xiaoguang
2016-08-25  5:21 ` [PATCH 2/3] btrfs-progs: check: make low memory mode support partially dropped snapshots Wang Xiaoguang
2016-09-09 15:32   ` David Sterba
2016-08-25  5:21 ` [PATCH 3/3] btrfs-progs: tests: add 021-partially-dropped-snapshot-case Wang Xiaoguang
2016-08-29 16:22 ` [PATCH 1/3] btrfs-progs: check: remove unused found_key variable in walk_down_tree() David Sterba
2016-09-09 15:36   ` David Sterba
2016-09-12  7:01   ` Wang Xiaoguang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).