Btrfs-progs: chunk-recover: use right size when allocating chunk root node
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Wed, 27 Nov 2013 14:43:56 +0000 (22:43 +0800)
committerChris Mason <clm@fb.com>
Fri, 31 Jan 2014 16:22:06 +0000 (08:22 -0800)
commite5f72de944385aec1863842f46dd0286801b7faa
tree3ddce801790e952b0a03b45b6b157fa3e5761c5b
parent7ff512ce38a266756442ddca328090fe9b6781dc
Btrfs-progs: chunk-recover: use right size when allocating chunk root node

When allocating chunk root node, we should use nodesize rather than sectorsize,
this will casue regression when making other nodesize choice.(for example 16k size now)

Reported-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
chunk-recover.c