diff options
author | Wang Shilong <wangsl.fnst@cn.fujitsu.com> | 2014-02-25 19:48:56 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-03-21 06:23:24 -0700 |
commit | acdf338c136a602b9006f37efe2c6a60784834c7 (patch) | |
tree | 67c2db1e120aa1ab9a449f3b8f574fe54103fb14 /send-utils.h | |
parent | 9c59fb98094429150a338980fb593c1887b6e25d (diff) |
Btrfs-progs: fsck: avoid overwritting existed space when initting csum tree
Steps to reproduce:
# mkfs.btrfs -f /dev/sda9
# btrfs check /dev/sda9 --init-extent-tree --init-csum-tree
# btrfs check /dev/sda9
During reinitting extent tree, we will pin all metadata blocks to
avoid overwritting existing metadata space. However, those space will
be unpinned after committing transaction.
If we try to reinit csum tree after reiniting extent tree, we may
overwrite existing space. Fix this problem by making reinit extent tree
and csum tree in same transaction.
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>
Diffstat (limited to 'send-utils.h')
0 files changed, 0 insertions, 0 deletions